summaryrefslogtreecommitdiff
path: root/fs/affs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-04-16 12:48:18 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:08 -0400
commit6bf445ce35353fe865664af0dbaeb848f0a2820f (patch)
treefbd0516d7f7fed140b3c8e8b1e2de4ec88fab513 /fs/affs
parenta0016ff2867ad25aad9807fb46bd0d85429dd5e8 (diff)
downloadlwn-6bf445ce35353fe865664af0dbaeb848f0a2820f.tar.gz
lwn-6bf445ce35353fe865664af0dbaeb848f0a2820f.zip
fs/affs/affs.h: add mount option manipulation macros
Add clear/set/test affs mount option macros. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs')
-rw-r--r--fs/affs/affs.h4
1 files changed, 4 insertions, 0 deletions
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)
{