Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Matthew Wilcox and committed by
Linus Torvalds
97443aa8 6cd176a5

+3 -9
-1
fs/ext2/ext2.h
··· 796 796 797 797 /* inode.c */ 798 798 extern const struct address_space_operations ext2_aops; 799 - extern const struct address_space_operations ext2_aops_xip; 800 799 extern const struct address_space_operations ext2_nobh_aops; 801 800 802 801 /* namei.c */
+1 -6
fs/ext2/inode.c
··· 891 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 894 const struct address_space_operations ext2_nobh_aops = { 900 895 .readpage = ext2_readpage, 901 896 .readpages = ext2_readpages, ··· 1389 1394 if (S_ISREG(inode->i_mode)) { 1390 1395 inode->i_op = &ext2_file_inode_operations; 1391 1396 if (test_opt(inode->i_sb, XIP)) { 1392 - inode->i_mapping->a_ops = &ext2_aops_xip; 1397 + inode->i_mapping->a_ops = &ext2_aops; 1393 1398 inode->i_fop = &ext2_xip_file_operations; 1394 1399 } else if (test_opt(inode->i_sb, NOBH)) { 1395 1400 inode->i_mapping->a_ops = &ext2_nobh_aops;
+2 -2
fs/ext2/namei.c
··· 105 105 106 106 inode->i_op = &ext2_file_inode_operations; 107 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 109 inode->i_fop = &ext2_xip_file_operations; 110 110 } else if (test_opt(inode->i_sb, NOBH)) { 111 111 inode->i_mapping->a_ops = &ext2_nobh_aops; ··· 126 126 127 127 inode->i_op = &ext2_file_inode_operations; 128 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 130 inode->i_fop = &ext2_xip_file_operations; 131 131 } else if (test_opt(inode->i_sb, NOBH)) { 132 132 inode->i_mapping->a_ops = &ext2_nobh_aops;