diff options
author | Jan Kara <jack@suse.cz> | 2008-03-19 17:00:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-19 18:53:35 -0700 |
commit | 87cb055bc10571522f953925c25bb1a0d1b17605 (patch) | |
tree | 72c097d68ee8222236a7630265fade4321800f98 | |
parent | 52ea27eb4cd5f250f33638029a134ff03c5e6bbb (diff) | |
download | op-kernel-dev-87cb055bc10571522f953925c25bb1a0d1b17605.zip op-kernel-dev-87cb055bc10571522f953925c25bb1a0d1b17605.tar.gz |
quota: add possibly missing iput() when quotaon and quotaoff races
We should always put inode we have reference to, even if quota was reenabled
in the mean time.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1522,8 +1522,8 @@ int vfs_quota_off(struct super_block *sb, int type) truncate_inode_pages(&toputinode[cnt]->i_data, 0); mutex_unlock(&toputinode[cnt]->i_mutex); mark_inode_dirty(toputinode[cnt]); - iput(toputinode[cnt]); } + iput(toputinode[cnt]); mutex_unlock(&dqopt->dqonoff_mutex); } if (sb->s_bdev) |