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)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 9 Dec 2009 03:18:25 +0000 (22:18 -0500)
commitb844167edc7fcafda9623955c05e4c1b3c32ebc7
tree60b204901afb6393ace94bd5c8d39246d0a87383
parentd4edac314e9ad0b21ba20ba8bc61b61f186f79e1
ext4: remove blocks from inode prealloc list on failure

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>
fs/ext4/mballoc.c