diff options
Diffstat (limited to 'fs/affs/namei.c')
-rw-r--r-- | fs/affs/namei.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/affs/namei.c b/fs/affs/namei.c index ffb7bd82c2a5..aaa81ab1b6fc 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c | |||
@@ -53,7 +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 & SF_INTL ? affs_intl_toupper : affs_toupper; | 56 | return AFFS_SB(sb)->s_flags & AFFS_MOUNT_SF_INTL ? |
57 | affs_intl_toupper : affs_toupper; | ||
57 | } | 58 | } |
58 | 59 | ||
59 | /* | 60 | /* |
@@ -275,7 +276,8 @@ affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) | |||
275 | 276 | ||
276 | inode->i_op = &affs_file_inode_operations; | 277 | inode->i_op = &affs_file_inode_operations; |
277 | inode->i_fop = &affs_file_operations; | 278 | inode->i_fop = &affs_file_operations; |
278 | inode->i_mapping->a_ops = (AFFS_SB(sb)->s_flags & SF_OFS) ? &affs_aops_ofs : &affs_aops; | 279 | inode->i_mapping->a_ops = (AFFS_SB(sb)->s_flags & AFFS_MOUNT_SF_OFS) ? |
280 | &affs_aops_ofs : &affs_aops; | ||
279 | error = affs_add_entry(dir, inode, dentry, ST_FILE); | 281 | error = affs_add_entry(dir, inode, dentry, ST_FILE); |
280 | if (error) { | 282 | if (error) { |
281 | clear_nlink(inode); | 283 | clear_nlink(inode); |