334
334
*/
335
335
struct btrfs_disk_key {
336
336
__le64 objectid ;
337
- u8 type ;
337
+ __u8 type ;
338
338
__le64 offset ;
339
339
} __attribute__ ((__packed__ ));
340
340
341
341
struct btrfs_key {
342
- u64 objectid ;
343
- u8 type ;
344
- u64 offset ;
342
+ __u64 objectid ;
343
+ __u8 type ;
344
+ __u64 offset ;
345
345
} __attribute__ ((__packed__ ));
346
346
347
347
struct btrfs_dev_item {
@@ -379,22 +379,22 @@ struct btrfs_dev_item {
379
379
__le32 dev_group ;
380
380
381
381
/* seek speed 0-100 where 100 is fastest */
382
- u8 seek_speed ;
382
+ __u8 seek_speed ;
383
383
384
384
/* bandwidth 0-100 where 100 is fastest */
385
- u8 bandwidth ;
385
+ __u8 bandwidth ;
386
386
387
387
/* btrfs generated uuid for this device */
388
- u8 uuid [BTRFS_UUID_SIZE ];
388
+ __u8 uuid [BTRFS_UUID_SIZE ];
389
389
390
390
/* uuid of FS who owns this device */
391
- u8 fsid [BTRFS_UUID_SIZE ];
391
+ __u8 fsid [BTRFS_UUID_SIZE ];
392
392
} __attribute__ ((__packed__ ));
393
393
394
394
struct btrfs_stripe {
395
395
__le64 devid ;
396
396
__le64 offset ;
397
- u8 dev_uuid [BTRFS_UUID_SIZE ];
397
+ __u8 dev_uuid [BTRFS_UUID_SIZE ];
398
398
} __attribute__ ((__packed__ ));
399
399
400
400
struct btrfs_chunk {
@@ -433,7 +433,7 @@ struct btrfs_chunk {
433
433
struct btrfs_free_space_entry {
434
434
__le64 offset ;
435
435
__le64 bytes ;
436
- u8 type ;
436
+ __u8 type ;
437
437
} __attribute__ ((__packed__ ));
438
438
439
439
struct btrfs_free_space_header {
@@ -486,7 +486,7 @@ struct btrfs_extent_item_v0 {
486
486
487
487
struct btrfs_tree_block_info {
488
488
struct btrfs_disk_key key ;
489
- u8 level ;
489
+ __u8 level ;
490
490
} __attribute__ ((__packed__ ));
491
491
492
492
struct btrfs_extent_data_ref {
@@ -501,7 +501,7 @@ struct btrfs_shared_data_ref {
501
501
} __attribute__ ((__packed__ ));
502
502
503
503
struct btrfs_extent_inline_ref {
504
- u8 type ;
504
+ __u8 type ;
505
505
__le64 offset ;
506
506
} __attribute__ ((__packed__ ));
507
507
@@ -523,7 +523,7 @@ struct btrfs_dev_extent {
523
523
__le64 chunk_objectid ;
524
524
__le64 chunk_offset ;
525
525
__le64 length ;
526
- u8 chunk_tree_uuid [BTRFS_UUID_SIZE ];
526
+ __u8 chunk_tree_uuid [BTRFS_UUID_SIZE ];
527
527
} __attribute__ ((__packed__ ));
528
528
529
529
struct btrfs_inode_ref {
@@ -583,7 +583,7 @@ struct btrfs_dir_item {
583
583
__le64 transid ;
584
584
__le16 data_len ;
585
585
__le16 name_len ;
586
- u8 type ;
586
+ __u8 type ;
587
587
} __attribute__ ((__packed__ ));
588
588
589
589
#define BTRFS_ROOT_SUBVOL_RDONLY (1ULL << 0)
@@ -605,8 +605,8 @@ struct btrfs_root_item {
605
605
__le64 flags ;
606
606
__le32 refs ;
607
607
struct btrfs_disk_key drop_progress ;
608
- u8 drop_level ;
609
- u8 level ;
608
+ __u8 drop_level ;
609
+ __u8 level ;
610
610
611
611
/*
612
612
* The following fields appear after subvol_uuids+subvol_times
@@ -625,9 +625,9 @@ struct btrfs_root_item {
625
625
* when invalidating the fields.
626
626
*/
627
627
__le64 generation_v2 ;
628
- u8 uuid [BTRFS_UUID_SIZE ];
629
- u8 parent_uuid [BTRFS_UUID_SIZE ];
630
- u8 received_uuid [BTRFS_UUID_SIZE ];
628
+ __u8 uuid [BTRFS_UUID_SIZE ];
629
+ __u8 parent_uuid [BTRFS_UUID_SIZE ];
630
+ __u8 received_uuid [BTRFS_UUID_SIZE ];
631
631
__le64 ctransid ; /* updated when an inode changes */
632
632
__le64 otransid ; /* trans when created */
633
633
__le64 stransid ; /* trans when sent. non-zero for received subvol */
@@ -751,12 +751,12 @@ struct btrfs_file_extent_item {
751
751
* it is treated like an incompat flag for reading and writing,
752
752
* but not for stat.
753
753
*/
754
- u8 compression ;
755
- u8 encryption ;
754
+ __u8 compression ;
755
+ __u8 encryption ;
756
756
__le16 other_encoding ; /* spare for later use */
757
757
758
758
/* are we inline data or a real extent? */
759
- u8 type ;
759
+ __u8 type ;
760
760
761
761
/*
762
762
* disk space consumed by the extent, checksum blocks are included
@@ -783,7 +783,7 @@ struct btrfs_file_extent_item {
783
783
} __attribute__ ((__packed__ ));
784
784
785
785
struct btrfs_csum_item {
786
- u8 csum ;
786
+ __u8 csum ;
787
787
} __attribute__ ((__packed__ ));
788
788
789
789
struct btrfs_dev_stats_item {
@@ -874,14 +874,14 @@ enum btrfs_raid_types {
874
874
#define BTRFS_EXTENDED_PROFILE_MASK (BTRFS_BLOCK_GROUP_PROFILE_MASK | \
875
875
BTRFS_AVAIL_ALLOC_BIT_SINGLE)
876
876
877
- static inline u64 chunk_to_extended (u64 flags )
877
+ static inline __u64 chunk_to_extended (__u64 flags )
878
878
{
879
879
if ((flags & BTRFS_BLOCK_GROUP_PROFILE_MASK ) == 0 )
880
880
flags |= BTRFS_AVAIL_ALLOC_BIT_SINGLE ;
881
881
882
882
return flags ;
883
883
}
884
- static inline u64 extended_to_chunk (u64 flags )
884
+ static inline __u64 extended_to_chunk (__u64 flags )
885
885
{
886
886
return flags & ~BTRFS_AVAIL_ALLOC_BIT_SINGLE ;
887
887
}
@@ -900,7 +900,7 @@ struct btrfs_free_space_info {
900
900
#define BTRFS_FREE_SPACE_USING_BITMAPS (1ULL << 0)
901
901
902
902
#define BTRFS_QGROUP_LEVEL_SHIFT 48
903
- static inline u64 btrfs_qgroup_level (u64 qgroupid )
903
+ static inline __u64 btrfs_qgroup_level (__u64 qgroupid )
904
904
{
905
905
return qgroupid >> BTRFS_QGROUP_LEVEL_SHIFT ;
906
906
}
0 commit comments