summaryrefslogtreecommitdiff
path: root/drivers/base/power
diff options
context:
space:
mode:
authorJiaying Zhang <jiayingz@google.com>2011-07-10 20:07:25 -0400
committerJonas ABERG <jonas.aberg@stericsson.com>2011-10-28 11:13:30 +0200
commite8829c0dcfa670dcf8c8f3d0772b471656f1604d (patch)
treef77578bab64e4a6840ea8cd8ba2dc57c8569c887 /drivers/base/power
parentf126e5768b82f3e115624e089f08ff41f59264a8 (diff)
ext4: free allocated and pre-allocated blocks when check_eofblocks_fl fails
commit 575a1d4bdfa2ea9fc10733013136145b497e1be0 upstream. Upon corrupted inode or disk failures, we may fail after we already allocate some blocks from the inode or take some blocks from the inode's preallocation list, but before we successfully insert the corresponding extent to the extent tree. In this case, we should free any allocated blocks and discard the inode's preallocated blocks because the entries in the inode's preallocation list may be in an inconsistent state. Signed-off-by: Jiaying Zhang <jiayingz@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: If006ca82d5d0f521af52104f3c4db1d5d9413e47 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35649 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers/base/power')
0 files changed, 0 insertions, 0 deletions