summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2015-04-03 07:13:42 +0300
committerSasha Levin <sasha.levin@oracle.com>2015-11-15 20:51:54 +0300
commitb1e06008b17ecd099ab14e005a2909b40c8b6faa (patch)
treec37922be04acf18df9a01a59f946bf65b6308af5 /security
parentb9fca5cb9ab94112bebd1e5db862962df9dfcec2 (diff)
downloadlinux-b1e06008b17ecd099ab14e005a2909b40c8b6faa.tar.xz
ext4: fix loss of delalloc extent info in ext4_zero_range()
[ Upstream commit 94426f4b9648154dc5a6760b59e6953e640ab3b1 ] In ext4_zero_range(), removing a file's entire block range from the extent status tree removes all records of that file's delalloc extents. The delalloc accounting code uses this information, and its loss can then lead to accounting errors and kernel warnings at writeback time and subsequent file system damage. This is most noticeable on bigalloc file systems where code in ext4_ext_map_blocks() handles cases where delalloc extents share clusters with a newly allocated extent. Because we're not deleting a block range and are correctly updating the status of its associated extent, there is no need to remove anything from the extent status tree. When this patch is combined with an unrelated bug fix for ext4_zero_range(), kernel warnings and e2fsck errors reported during xfstests runs on bigalloc filesystems are greatly reduced without introducing regressions on other xfstests-bld test scenarios. Signed-off-by: Eric Whitney <enwlinux@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions