Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213754
b: refs/heads/master
c: 518d1a6
h: refs/heads/master
v: v3
  • Loading branch information
Ryusuke Konishi committed Oct 23, 2010
1 parent f6e3e13 commit e1ec399
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b453c95eb8d6a3b2348e9c7bc28a7d223cb640e3
refs/heads/master: 518d1a6a1d6610a014875a2fe3252e89b6260d2f
4 changes: 4 additions & 0 deletions trunk/fs/nilfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ void nilfs_truncate(struct inode *inode)
static void nilfs_clear_inode(struct inode *inode)
{
struct nilfs_inode_info *ii = NILFS_I(inode);
struct nilfs_mdt_info *mdi = NILFS_MDT(inode);

/*
* Free resources allocated in nilfs_read_inode(), here.
Expand All @@ -682,6 +683,9 @@ static void nilfs_clear_inode(struct inode *inode)
brelse(ii->i_bh);
ii->i_bh = NULL;

if (mdi && mdi->mi_palloc_cache)
nilfs_palloc_destroy_cache(inode);

if (test_bit(NILFS_I_BMAP, &ii->i_state))
nilfs_bmap_clear(ii->i_bmap);

Expand Down

0 comments on commit e1ec399

Please sign in to comment.