Skip to content

Commit

Permalink
fs/affs/affs.h: add mount option manipulation macros
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Apr 17, 2015
1 parent a0016ff commit 6bf445c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/affs/affs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6bf445c

Please sign in to comment.