summaryrefslogtreecommitdiff
path: root/fs/jbd2
diff options
context:
space:
mode:
authorJiaying Zhang <jiayingz@google.com>2011-07-10 20:07:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-07-10 20:07:25 -0400
commit575a1d4bdfa2ea9fc10733013136145b497e1be0 (patch)
tree2491bacefb28e5990bc97f3f9598ee8e9b21e434 /fs/jbd2
parent7132de744ba76930d13033061018ddd7e3e8cd91 (diff)
ext4: free allocated and pre-allocated blocks when check_eofblocks_fl fails
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> Cc: stable@kernel.org
Diffstat (limited to 'fs/jbd2')
0 files changed, 0 insertions, 0 deletions