From: Dmitry Monakhov If ext4_reserve_block has failed we have to drop quota. Signed-off-by: Dmitry Monakhov Acked-by: Alex Tomas Signed-off-by: Dave Kleikamp --- fs/ext4/balloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.23-rc2/fs/ext4/balloc.c =================================================================== --- linux-2.6.23-rc2.orig/fs/ext4/balloc.c 2007-08-06 22:18:59.000000000 -0700 +++ linux-2.6.23-rc2/fs/ext4/balloc.c 2007-08-06 22:19:02.000000000 -0700 @@ -1467,7 +1467,7 @@ ext4_fsblk_t ext4_new_blocks(handle_t *h if (!(EXT4_I(inode)->i_state & EXT4_STATE_BLOCKS_RESERVED)) { *errp = ext4_reserve_blocks(sb, num); if (*errp) - return 0; + goto out; reserved = num; }