Skip to content
Commit adc6c565 authored by Curt Wohlgemuth's avatar Curt Wohlgemuth Committed by Andy Whitcroft
Browse files

ext4: remove blocks from inode prealloc list on failure

(cherry picked from commit b844167e

)

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: default avatarCurt Wohlgemuth <curtw@google.com>
Acked-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent f94fc527
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment