ext4: remove blocks from inode prealloc list on failure
commita9a3ddb71f81e2529f7c38f06981723c8af1ffd0
authorCurt Wohlgemuth <curtw@google.com>
Wed, 9 Dec 2009 03:18:25 +0000 (8 22:18 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:54 +0000 (14 08:07 -0800)
tree4b44ebef9ae49085cdc8c29e8652094fa2f4a919
parent3b9d4e773c20b34534c46e563103071f2f540bf8
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