summaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2005-07-27 11:43:39 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 16:25:50 -0700
commitc7e9a52ef0089492bba457dfb8eba1a54e19f24a (patch)
treeb27ebf42dbf85be14732ba0b776237abbce970fa /fs/ext2
parentb3bb8afd965159f155d4f629cbea158cbcc69275 (diff)
downloadlinux-3.10-c7e9a52ef0089492bba457dfb8eba1a54e19f24a.tar.gz
linux-3.10-c7e9a52ef0089492bba457dfb8eba1a54e19f24a.tar.bz2
linux-3.10-c7e9a52ef0089492bba457dfb8eba1a54e19f24a.zip
[PATCH] ext2: drop quota reference before releasing inode
We must drop references to quota structures before releasing the inode. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/ialloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c
index 77e05914921..161f156d98c 100644
--- a/fs/ext2/ialloc.c
+++ b/fs/ext2/ialloc.c
@@ -612,6 +612,7 @@ got:
err = ext2_init_acl(inode, dir);
if (err) {
DQUOT_FREE_INODE(inode);
+ DQUOT_DROP(inode);
goto fail2;
}
mark_inode_dirty(inode);