Skip to content

Commit 97443aa

Browse files
Matthew Wilcoxtorvalds
authored andcommitted
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>
1 parent 6cd176a commit 97443aa

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

‎fs/ext2/ext2.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ extern const struct file_operations ext2_xip_file_operations;
796796

797797
/* inode.c */
798798
extern const struct address_space_operations ext2_aops;
799-
extern const struct address_space_operations ext2_aops_xip;
800799
extern const struct address_space_operations ext2_nobh_aops;
801800

802801
/* namei.c */

‎fs/ext2/inode.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -891,11 +891,6 @@ const struct address_space_operations ext2_aops = {
891891
.error_remove_page = generic_error_remove_page,
892892
};
893893

894-
const struct address_space_operations ext2_aops_xip = {
895-
.bmap = ext2_bmap,
896-
.direct_IO = ext2_direct_IO,
897-
};
898-
899894
const struct address_space_operations ext2_nobh_aops = {
900895
.readpage = ext2_readpage,
901896
.readpages = ext2_readpages,
@@ -1394,7 +1389,7 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino)
13941389
if (S_ISREG(inode->i_mode)) {
13951390
inode->i_op = &ext2_file_inode_operations;
13961391
if (test_opt(inode->i_sb, XIP)) {
1397-
inode->i_mapping->a_ops = &ext2_aops_xip;
1392+
inode->i_mapping->a_ops = &ext2_aops;
13981393
inode->i_fop = &ext2_xip_file_operations;
13991394
} else if (test_opt(inode->i_sb, NOBH)) {
14001395
inode->i_mapping->a_ops = &ext2_nobh_aops;

‎fs/ext2/namei.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode
105105

106106
inode->i_op = &ext2_file_inode_operations;
107107
if (test_opt(inode->i_sb, XIP)) {
108-
inode->i_mapping->a_ops = &ext2_aops_xip;
108+
inode->i_mapping->a_ops = &ext2_aops;
109109
inode->i_fop = &ext2_xip_file_operations;
110110
} else if (test_opt(inode->i_sb, NOBH)) {
111111
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)
126126

127127
inode->i_op = &ext2_file_inode_operations;
128128
if (test_opt(inode->i_sb, XIP)) {
129-
inode->i_mapping->a_ops = &ext2_aops_xip;
129+
inode->i_mapping->a_ops = &ext2_aops;
130130
inode->i_fop = &ext2_xip_file_operations;
131131
} else if (test_opt(inode->i_sb, NOBH)) {
132132
inode->i_mapping->a_ops = &ext2_nobh_aops;

0 commit comments

Comments
 (0)