diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-02-08 07:20:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:34 -0500 |
commit | 6c79e987d629cb0f8f7e2983725f4434a2dec66b (patch) | |
tree | ea2e17a12a0bdc5d68d2fe49941bfdf249e0f647 /include/linux/udf_fs_sb.h | |
parent | 3a71fc5de56338076fe99f24f50bccfebabefe18 (diff) |
udf: remove some ugly macros
remove macros:
- UDF_SB_PARTMAPS
- UDF_SB_PARTTYPE
- UDF_SB_PARTROOT
- UDF_SB_PARTLEN
- UDF_SB_PARTVSN
- UDF_SB_PARTNUM
- UDF_SB_TYPESPAR
- UDF_SB_TYPEVIRT
- UDF_SB_PARTFUNC
- UDF_SB_PARTFLAGS
- UDF_SB_VOLIDENT
- UDF_SB_NUMPARTS
- UDF_SB_PARTITION
- UDF_SB_SESSION
- UDF_SB_ANCHOR
- UDF_SB_LASTBLOCK
- UDF_SB_LVIDBH
- UDF_SB_LVID
- UDF_SB_UMASK
- UDF_SB_GID
- UDF_SB_UID
- UDF_SB_RECORDTIME
- UDF_SB_SERIALNUM
- UDF_SB_UDFREV
- UDF_SB_FLAGS
- UDF_SB_VAT
- UDF_UPDATE_UDFREV
- UDF_SB_FREE
and open code them
convert UDF_SB_LVIDIU macro to udf_sb_lvidiu function
rename some struct udf_sb_info fields:
- s_volident to s_volume_ident
- s_lastblock to s_last_block
- s_lvidbh to s_lvid_bh
- s_recordtime to s_record_time
- s_serialnum to s_serial_number;
- s_vat to s_vat_inode;
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ben Fennema <bfennema@falcon.csc.calpoly.edu>
Cc: Jan Kara <jack@suse.cz>
Acked-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/udf_fs_sb.h')
-rw-r--r-- | include/linux/udf_fs_sb.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/udf_fs_sb.h b/include/linux/udf_fs_sb.h index 80ae9ef940dc..9bc47352b6b4 100644 --- a/include/linux/udf_fs_sb.h +++ b/include/linux/udf_fs_sb.h | |||
@@ -75,7 +75,7 @@ struct udf_part_map | |||
75 | struct udf_sb_info | 75 | struct udf_sb_info |
76 | { | 76 | { |
77 | struct udf_part_map *s_partmaps; | 77 | struct udf_part_map *s_partmaps; |
78 | __u8 s_volident[32]; | 78 | __u8 s_volume_ident[32]; |
79 | 79 | ||
80 | /* Overall info */ | 80 | /* Overall info */ |
81 | __u16 s_partitions; | 81 | __u16 s_partitions; |
@@ -84,9 +84,9 @@ struct udf_sb_info | |||
84 | /* Sector headers */ | 84 | /* Sector headers */ |
85 | __s32 s_session; | 85 | __s32 s_session; |
86 | __u32 s_anchor[4]; | 86 | __u32 s_anchor[4]; |
87 | __u32 s_lastblock; | 87 | __u32 s_last_block; |
88 | 88 | ||
89 | struct buffer_head *s_lvidbh; | 89 | struct buffer_head *s_lvid_bh; |
90 | 90 | ||
91 | /* Default permissions */ | 91 | /* Default permissions */ |
92 | mode_t s_umask; | 92 | mode_t s_umask; |
@@ -94,10 +94,10 @@ struct udf_sb_info | |||
94 | uid_t s_uid; | 94 | uid_t s_uid; |
95 | 95 | ||
96 | /* Root Info */ | 96 | /* Root Info */ |
97 | struct timespec s_recordtime; | 97 | struct timespec s_record_time; |
98 | 98 | ||
99 | /* Fileset Info */ | 99 | /* Fileset Info */ |
100 | __u16 s_serialnum; | 100 | __u16 s_serial_number; |
101 | 101 | ||
102 | /* highest UDF revision we have recorded to this media */ | 102 | /* highest UDF revision we have recorded to this media */ |
103 | __u16 s_udfrev; | 103 | __u16 s_udfrev; |
@@ -109,7 +109,7 @@ struct udf_sb_info | |||
109 | struct nls_table *s_nls_map; | 109 | struct nls_table *s_nls_map; |
110 | 110 | ||
111 | /* VAT inode */ | 111 | /* VAT inode */ |
112 | struct inode *s_vat; | 112 | struct inode *s_vat_inode; |
113 | 113 | ||
114 | struct mutex s_alloc_mutex; | 114 | struct mutex s_alloc_mutex; |
115 | }; | 115 | }; |