Commit 293ce0ed authored by Ryusuke Konishi's avatar Ryusuke Konishi

nilfs2: use empty_aops for gc-inodes

Applies empty_aops for address space operations of gc-inodes.
Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent 4e33f9ea
...@@ -48,9 +48,6 @@ ...@@ -48,9 +48,6 @@
#include "dat.h" #include "dat.h"
#include "ifile.h" #include "ifile.h"
static const struct address_space_operations def_gcinode_aops = {
};
/* /*
* nilfs_gccache_submit_read_data() - add data buffer and submit read request * nilfs_gccache_submit_read_data() - add data buffer and submit read request
* @inode - gc inode * @inode - gc inode
...@@ -178,7 +175,7 @@ int nilfs_init_gcinode(struct inode *inode) ...@@ -178,7 +175,7 @@ int nilfs_init_gcinode(struct inode *inode)
inode->i_mode = S_IFREG; inode->i_mode = S_IFREG;
mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS);
inode->i_mapping->a_ops = &def_gcinode_aops; inode->i_mapping->a_ops = &empty_aops;
inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi; inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi;
ii->i_flags = 0; ii->i_flags = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment