From: Fabian Frederick Date: Thu, 16 Apr 2015 19:48:18 +0000 (-0700) Subject: fs/affs/affs.h: add mount option manipulation macros X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6bf445ce35353fe865664af0dbaeb848f0a2820f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/affs/affs.h: add mount option manipulation macros Add clear/set/test affs mount option macros. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 35a855a8a2d7..cffe8370fb44 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h @@ -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) {