diff options
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r-- | fs/nilfs2/super.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 8351c44a7320..08e3d4f9df18 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -175,8 +175,6 @@ static void nilfs_i_callback(struct rcu_head *head) | |||
175 | struct inode *inode = container_of(head, struct inode, i_rcu); | 175 | struct inode *inode = container_of(head, struct inode, i_rcu); |
176 | struct nilfs_mdt_info *mdi = NILFS_MDT(inode); | 176 | struct nilfs_mdt_info *mdi = NILFS_MDT(inode); |
177 | 177 | ||
178 | INIT_LIST_HEAD(&inode->i_dentry); | ||
179 | |||
180 | if (mdi) { | 178 | if (mdi) { |
181 | kfree(mdi->mi_bgl); /* kfree(NULL) is safe */ | 179 | kfree(mdi->mi_bgl); /* kfree(NULL) is safe */ |
182 | kfree(mdi); | 180 | kfree(mdi); |
@@ -650,11 +648,11 @@ static int nilfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
650 | return 0; | 648 | return 0; |
651 | } | 649 | } |
652 | 650 | ||
653 | static int nilfs_show_options(struct seq_file *seq, struct vfsmount *vfs) | 651 | static int nilfs_show_options(struct seq_file *seq, struct dentry *dentry) |
654 | { | 652 | { |
655 | struct super_block *sb = vfs->mnt_sb; | 653 | struct super_block *sb = dentry->d_sb; |
656 | struct the_nilfs *nilfs = sb->s_fs_info; | 654 | struct the_nilfs *nilfs = sb->s_fs_info; |
657 | struct nilfs_root *root = NILFS_I(vfs->mnt_root->d_inode)->i_root; | 655 | struct nilfs_root *root = NILFS_I(dentry->d_inode)->i_root; |
658 | 656 | ||
659 | if (!nilfs_test_opt(nilfs, BARRIER)) | 657 | if (!nilfs_test_opt(nilfs, BARRIER)) |
660 | seq_puts(seq, ",nobarrier"); | 658 | seq_puts(seq, ",nobarrier"); |