diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-04-16 15:48:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:08 -0400 |
commit | 79bda4d510f80e403ef66fee852f8ccb17308581 (patch) | |
tree | 74c292beca04f1469623cdd7141c074c2ac5a67a /fs/affs/namei.c | |
parent | 34f24835383092098cb4ce5c4eb6e719a9973d68 (diff) |
fs/affs: use affs_test_opt()
Replace mount option test by affs_test_opt().
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/namei.c')
-rw-r--r-- | fs/affs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/affs/namei.c b/fs/affs/namei.c index aaa81ab1b6fc..ec8ca0efb960 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c | |||
@@ -53,8 +53,8 @@ affs_intl_toupper(int ch) | |||
53 | static inline toupper_t | 53 | static inline toupper_t |
54 | affs_get_toupper(struct super_block *sb) | 54 | affs_get_toupper(struct super_block *sb) |
55 | { | 55 | { |
56 | return AFFS_SB(sb)->s_flags & AFFS_MOUNT_SF_INTL ? | 56 | return affs_test_opt(AFFS_SB(sb)->s_flags, SF_INTL) ? |
57 | affs_intl_toupper : affs_toupper; | 57 | affs_intl_toupper : affs_toupper; |
58 | } | 58 | } |
59 | 59 | ||
60 | /* | 60 | /* |
@@ -276,7 +276,7 @@ affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) | |||
276 | 276 | ||
277 | inode->i_op = &affs_file_inode_operations; | 277 | inode->i_op = &affs_file_inode_operations; |
278 | inode->i_fop = &affs_file_operations; | 278 | inode->i_fop = &affs_file_operations; |
279 | inode->i_mapping->a_ops = (AFFS_SB(sb)->s_flags & AFFS_MOUNT_SF_OFS) ? | 279 | inode->i_mapping->a_ops = affs_test_opt(AFFS_SB(sb)->s_flags, SF_OFS) ? |
280 | &affs_aops_ofs : &affs_aops; | 280 | &affs_aops_ofs : &affs_aops; |
281 | error = affs_add_entry(dir, inode, dentry, ST_FILE); | 281 | error = affs_add_entry(dir, inode, dentry, ST_FILE); |
282 | if (error) { | 282 | if (error) { |