]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix ext3 space accounting bug on ENOSPC
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:40:47 +0000 (23:40 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:40:47 +0000 (23:40 -0800)
From: Jan Kara <jack@suse.cz>

Fix en error exit path so that we correctly unaccount for quota-related space
reservations on ENOSPC.

fs/ext3/balloc.c

index c11a92f9f3b30d317fe62ff1ed320c83eeeabbae..e195de82cebc82d23b99aa4e0119901ec113a157 100644 (file)
@@ -517,7 +517,7 @@ ext3_new_block(handle_t *handle, struct inode *inode, unsigned long goal,
                sbi->s_resuid != current->fsuid &&
                (sbi->s_resgid == 0 || !in_group_p (sbi->s_resgid))) {
                *errp = -ENOSPC;
-               return 0;
+               goto out;
        }
 
        /*