diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2015-02-16 18:59:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-16 20:56:04 -0500 |
commit | 97443aa809a142b1e6db2ccfb046c3a962907204 (patch) | |
tree | d63e3cef6dd545981f47e31223a91838c70233af /fs/ext2 | |
parent | 6cd176a51e52e5218b1aa97e1ec916bac25a9b7e (diff) |
ext2: remove ext2_aops_xip
We shouldn't need a special address_space_operations any more
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Boaz Harrosh <boaz@plexistor.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/ext2.h | 1 | ||||
-rw-r--r-- | fs/ext2/inode.c | 7 | ||||
-rw-r--r-- | fs/ext2/namei.c | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index 6854038c09ae..ab9b3ec3bac9 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h | |||
@@ -796,7 +796,6 @@ extern const struct file_operations ext2_xip_file_operations; | |||
796 | 796 | ||
797 | /* inode.c */ | 797 | /* inode.c */ |
798 | extern const struct address_space_operations ext2_aops; | 798 | extern const struct address_space_operations ext2_aops; |
799 | extern const struct address_space_operations ext2_aops_xip; | ||
800 | extern const struct address_space_operations ext2_nobh_aops; | 799 | extern const struct address_space_operations ext2_nobh_aops; |
801 | 800 | ||
802 | /* namei.c */ | 801 | /* namei.c */ |
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 154cbcf30f35..034fd42eade0 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -891,11 +891,6 @@ const struct address_space_operations ext2_aops = { | |||
891 | .error_remove_page = generic_error_remove_page, | 891 | .error_remove_page = generic_error_remove_page, |
892 | }; | 892 | }; |
893 | 893 | ||
894 | const struct address_space_operations ext2_aops_xip = { | ||
895 | .bmap = ext2_bmap, | ||
896 | .direct_IO = ext2_direct_IO, | ||
897 | }; | ||
898 | |||
899 | const struct address_space_operations ext2_nobh_aops = { | 894 | const struct address_space_operations ext2_nobh_aops = { |
900 | .readpage = ext2_readpage, | 895 | .readpage = ext2_readpage, |
901 | .readpages = ext2_readpages, | 896 | .readpages = ext2_readpages, |
@@ -1394,7 +1389,7 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino) | |||
1394 | if (S_ISREG(inode->i_mode)) { | 1389 | if (S_ISREG(inode->i_mode)) { |
1395 | inode->i_op = &ext2_file_inode_operations; | 1390 | inode->i_op = &ext2_file_inode_operations; |
1396 | if (test_opt(inode->i_sb, XIP)) { | 1391 | if (test_opt(inode->i_sb, XIP)) { |
1397 | inode->i_mapping->a_ops = &ext2_aops_xip; | 1392 | inode->i_mapping->a_ops = &ext2_aops; |
1398 | inode->i_fop = &ext2_xip_file_operations; | 1393 | inode->i_fop = &ext2_xip_file_operations; |
1399 | } else if (test_opt(inode->i_sb, NOBH)) { | 1394 | } else if (test_opt(inode->i_sb, NOBH)) { |
1400 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 1395 | inode->i_mapping->a_ops = &ext2_nobh_aops; |
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c index 7ca803f408b0..0db888c91bec 100644 --- a/fs/ext2/namei.c +++ b/fs/ext2/namei.c | |||
@@ -105,7 +105,7 @@ static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode | |||
105 | 105 | ||
106 | inode->i_op = &ext2_file_inode_operations; | 106 | inode->i_op = &ext2_file_inode_operations; |
107 | if (test_opt(inode->i_sb, XIP)) { | 107 | if (test_opt(inode->i_sb, XIP)) { |
108 | inode->i_mapping->a_ops = &ext2_aops_xip; | 108 | inode->i_mapping->a_ops = &ext2_aops; |
109 | inode->i_fop = &ext2_xip_file_operations; | 109 | inode->i_fop = &ext2_xip_file_operations; |
110 | } else if (test_opt(inode->i_sb, NOBH)) { | 110 | } else if (test_opt(inode->i_sb, NOBH)) { |
111 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 111 | inode->i_mapping->a_ops = &ext2_nobh_aops; |
@@ -126,7 +126,7 @@ static int ext2_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
126 | 126 | ||
127 | inode->i_op = &ext2_file_inode_operations; | 127 | inode->i_op = &ext2_file_inode_operations; |
128 | if (test_opt(inode->i_sb, XIP)) { | 128 | if (test_opt(inode->i_sb, XIP)) { |
129 | inode->i_mapping->a_ops = &ext2_aops_xip; | 129 | inode->i_mapping->a_ops = &ext2_aops; |
130 | inode->i_fop = &ext2_xip_file_operations; | 130 | inode->i_fop = &ext2_xip_file_operations; |
131 | } else if (test_opt(inode->i_sb, NOBH)) { | 131 | } else if (test_opt(inode->i_sb, NOBH)) { |
132 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 132 | inode->i_mapping->a_ops = &ext2_nobh_aops; |