diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 00:37:42 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 00:37:42 -0500 |
| commit | 83eb95b852902f952ba594447a796ad8146b9462 (patch) | |
| tree | 33c199aeeae58b69ad8d6d2a33c2d96ba2b98ddf /fs/udf/udf_sb.h | |
| parent | efb3e34b6176d30c4fe8635fa8e1beb6280cc2cd (diff) | |
| parent | 9bbe7b984096ac45586da2adf26c14069ecb79b2 (diff) | |
Merge branch 'sh/sdio' into sh-latest
Diffstat (limited to 'fs/udf/udf_sb.h')
| -rw-r--r-- | fs/udf/udf_sb.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/fs/udf/udf_sb.h b/fs/udf/udf_sb.h index d113b72c2768..4858c191242b 100644 --- a/fs/udf/udf_sb.h +++ b/fs/udf/udf_sb.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define __LINUX_UDF_SB_H | 2 | #define __LINUX_UDF_SB_H |
| 3 | 3 | ||
| 4 | #include <linux/mutex.h> | 4 | #include <linux/mutex.h> |
| 5 | #include <linux/bitops.h> | ||
| 5 | 6 | ||
| 6 | /* Since UDF 2.01 is ISO 13346 based... */ | 7 | /* Since UDF 2.01 is ISO 13346 based... */ |
| 7 | #define UDF_SUPER_MAGIC 0x15013346 | 8 | #define UDF_SUPER_MAGIC 0x15013346 |
| @@ -128,6 +129,8 @@ struct udf_sb_info { | |||
| 128 | uid_t s_uid; | 129 | uid_t s_uid; |
| 129 | mode_t s_fmode; | 130 | mode_t s_fmode; |
| 130 | mode_t s_dmode; | 131 | mode_t s_dmode; |
| 132 | /* Lock protecting consistency of above permission settings */ | ||
| 133 | rwlock_t s_cred_lock; | ||
| 131 | 134 | ||
| 132 | /* Root Info */ | 135 | /* Root Info */ |
| 133 | struct timespec s_record_time; | 136 | struct timespec s_record_time; |
| @@ -139,7 +142,7 @@ struct udf_sb_info { | |||
| 139 | __u16 s_udfrev; | 142 | __u16 s_udfrev; |
| 140 | 143 | ||
| 141 | /* Miscellaneous flags */ | 144 | /* Miscellaneous flags */ |
| 142 | __u32 s_flags; | 145 | unsigned long s_flags; |
| 143 | 146 | ||
| 144 | /* Encoding info */ | 147 | /* Encoding info */ |
| 145 | struct nls_table *s_nls_map; | 148 | struct nls_table *s_nls_map; |
| @@ -161,8 +164,19 @@ struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct udf_sb_info *sbi); | |||
| 161 | 164 | ||
| 162 | int udf_compute_nr_groups(struct super_block *sb, u32 partition); | 165 | int udf_compute_nr_groups(struct super_block *sb, u32 partition); |
| 163 | 166 | ||
| 164 | #define UDF_QUERY_FLAG(X,Y) ( UDF_SB(X)->s_flags & ( 1 << (Y) ) ) | 167 | static inline int UDF_QUERY_FLAG(struct super_block *sb, int flag) |
| 165 | #define UDF_SET_FLAG(X,Y) ( UDF_SB(X)->s_flags |= ( 1 << (Y) ) ) | 168 | { |
| 166 | #define UDF_CLEAR_FLAG(X,Y) ( UDF_SB(X)->s_flags &= ~( 1 << (Y) ) ) | 169 | return test_bit(flag, &UDF_SB(sb)->s_flags); |
| 170 | } | ||
| 171 | |||
| 172 | static inline void UDF_SET_FLAG(struct super_block *sb, int flag) | ||
| 173 | { | ||
| 174 | set_bit(flag, &UDF_SB(sb)->s_flags); | ||
| 175 | } | ||
| 176 | |||
| 177 | static inline void UDF_CLEAR_FLAG(struct super_block *sb, int flag) | ||
| 178 | { | ||
| 179 | clear_bit(flag, &UDF_SB(sb)->s_flags); | ||
| 180 | } | ||
| 167 | 181 | ||
| 168 | #endif /* __LINUX_UDF_SB_H */ | 182 | #endif /* __LINUX_UDF_SB_H */ |
