ext4: remove blocks from inode prealloc list on failure
authorCurt Wohlgemuth <curtw@google.com>
Wed, 9 Dec 2009 03:18:25 +0000 (22:18 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 17:45:16 +0000 (09:45 -0800)
commit637b13106b744398b530fe916eb1556aeb7f6bca
tree5d345db9a81d6d626619ba933f1f4d97d874a232
parent1cd3f1980ce02bd814879ce1ac9cde5eaceb5f13
ext4: remove blocks from inode prealloc list on failure

(cherry picked from commit b844167edc7fcafda9623955c05e4c1b3c32ebc7)

This fixes a leak of blocks in an inode prealloc list if device failures
cause ext4_mb_mark_diskspace_used() to fail.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Acked-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/mballoc.c