Skip to content

Commit

Permalink
nilfs2: use empty_aops for gc-inodes
Browse files Browse the repository at this point in the history
Applies empty_aops for address space operations of gc-inodes.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
  • Loading branch information
konis committed May 10, 2011
1 parent 4e33f9e commit 293ce0e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/nilfs2/gcinode.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
#include "dat.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
* @inode - gc inode
Expand Down Expand Up @@ -178,7 +175,7 @@ int nilfs_init_gcinode(struct inode *inode)

inode->i_mode = S_IFREG;
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;

ii->i_flags = 0;
Expand Down

0 comments on commit 293ce0e

Please sign in to comment.