diff options
Diffstat (limited to 'fs/ext2/namei.c')
| -rw-r--r-- | fs/ext2/namei.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c index c268d0af1db9..148f6e3789ea 100644 --- a/fs/ext2/namei.c +++ b/fs/ext2/namei.c | |||
| @@ -35,7 +35,6 @@ | |||
| 35 | #include "ext2.h" | 35 | #include "ext2.h" |
| 36 | #include "xattr.h" | 36 | #include "xattr.h" |
| 37 | #include "acl.h" | 37 | #include "acl.h" |
| 38 | #include "xip.h" | ||
| 39 | 38 | ||
| 40 | static inline int ext2_add_nondir(struct dentry *dentry, struct inode *inode) | 39 | static inline int ext2_add_nondir(struct dentry *dentry, struct inode *inode) |
| 41 | { | 40 | { |
| @@ -105,9 +104,9 @@ static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode | |||
| 105 | return PTR_ERR(inode); | 104 | return PTR_ERR(inode); |
| 106 | 105 | ||
| 107 | inode->i_op = &ext2_file_inode_operations; | 106 | inode->i_op = &ext2_file_inode_operations; |
| 108 | if (ext2_use_xip(inode->i_sb)) { | 107 | if (test_opt(inode->i_sb, DAX)) { |
| 109 | inode->i_mapping->a_ops = &ext2_aops_xip; | 108 | inode->i_mapping->a_ops = &ext2_aops; |
| 110 | inode->i_fop = &ext2_xip_file_operations; | 109 | inode->i_fop = &ext2_dax_file_operations; |
| 111 | } else if (test_opt(inode->i_sb, NOBH)) { | 110 | } else if (test_opt(inode->i_sb, NOBH)) { |
| 112 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 111 | inode->i_mapping->a_ops = &ext2_nobh_aops; |
| 113 | inode->i_fop = &ext2_file_operations; | 112 | inode->i_fop = &ext2_file_operations; |
| @@ -126,9 +125,9 @@ static int ext2_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
| 126 | return PTR_ERR(inode); | 125 | return PTR_ERR(inode); |
| 127 | 126 | ||
| 128 | inode->i_op = &ext2_file_inode_operations; | 127 | inode->i_op = &ext2_file_inode_operations; |
| 129 | if (ext2_use_xip(inode->i_sb)) { | 128 | if (test_opt(inode->i_sb, DAX)) { |
| 130 | inode->i_mapping->a_ops = &ext2_aops_xip; | 129 | inode->i_mapping->a_ops = &ext2_aops; |
| 131 | inode->i_fop = &ext2_xip_file_operations; | 130 | inode->i_fop = &ext2_dax_file_operations; |
| 132 | } else if (test_opt(inode->i_sb, NOBH)) { | 131 | } else if (test_opt(inode->i_sb, NOBH)) { |
| 133 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 132 | inode->i_mapping->a_ops = &ext2_nobh_aops; |
| 134 | inode->i_fop = &ext2_file_operations; | 133 | inode->i_fop = &ext2_file_operations; |
