mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
fs/affs/affs.h: add mount option manipulation macros
Add clear/set/test affs mount option macros. Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a0016ff286
commit
6bf445ce35
1 changed files with 4 additions and 0 deletions
|
|
@ -119,6 +119,10 @@ struct affs_sb_info {
|
|||
#define AFFS_MOUNT_SF_VERBOSE 0x0800 /* Talk about fs when mounting */
|
||||
#define AFFS_MOUNT_SF_NO_TRUNCATE 0x1000 /* Don't truncate filenames */
|
||||
|
||||
#define affs_clear_opt(o, opt) (o &= ~AFFS_MOUNT_##opt)
|
||||
#define affs_set_opt(o, opt) (o |= AFFS_MOUNT_##opt)
|
||||
#define affs_test_opt(o, opt) ((o) & AFFS_MOUNT_##opt)
|
||||
|
||||
/* short cut to get to the affs specific sb data */
|
||||
static inline struct affs_sb_info *AFFS_SB(struct super_block *sb)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue