aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/inode.c')
-rw-r--r--fs/nilfs2/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c
index 3efef0ecfa24..5485dd12da64 100644
--- a/fs/nilfs2/inode.c
+++ b/fs/nilfs2/inode.c
@@ -674,6 +674,7 @@ void nilfs_truncate(struct inode *inode)
674static void nilfs_clear_inode(struct inode *inode) 674static void nilfs_clear_inode(struct inode *inode)
675{ 675{
676 struct nilfs_inode_info *ii = NILFS_I(inode); 676 struct nilfs_inode_info *ii = NILFS_I(inode);
677 struct nilfs_mdt_info *mdi = NILFS_MDT(inode);
677 678
678 /* 679 /*
679 * Free resources allocated in nilfs_read_inode(), here. 680 * Free resources allocated in nilfs_read_inode(), here.
@@ -682,6 +683,9 @@ static void nilfs_clear_inode(struct inode *inode)
682 brelse(ii->i_bh); 683 brelse(ii->i_bh);
683 ii->i_bh = NULL; 684 ii->i_bh = NULL;
684 685
686 if (mdi && mdi->mi_palloc_cache)
687 nilfs_palloc_destroy_cache(inode);
688
685 if (test_bit(NILFS_I_BMAP, &ii->i_state)) 689 if (test_bit(NILFS_I_BMAP, &ii->i_state))
686 nilfs_bmap_clear(ii->i_bmap); 690 nilfs_bmap_clear(ii->i_bmap);
687 691