1 If ext4_reserve_block has failed we have to drop quota.
3 From: Dmitry Monakhov <dmonakhov@openvz.org>
5 Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
6 Acked-by: Alex Tomas <alex@clusterfs.com>
7 Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
9 fs/ext4/balloc.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 Index: linux-2.6.23-rc2/fs/ext4/balloc.c
13 ===================================================================
14 --- linux-2.6.23-rc2.orig/fs/ext4/balloc.c 2007-08-06 22:18:59.000000000 -0700
15 +++ linux-2.6.23-rc2/fs/ext4/balloc.c 2007-08-06 22:19:02.000000000 -0700
16 @@ -1467,7 +1467,7 @@ ext4_fsblk_t ext4_new_blocks(handle_t *h
17 if (!(EXT4_I(inode)->i_state & EXT4_STATE_BLOCKS_RESERVED)) {
18 *errp = ext4_reserve_blocks(sb, num);