summaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2021-08-19 16:49:27 +0200
committerTheodore Ts'o <tytso@mit.edu>2021-09-09 16:52:05 +0200
commit948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9 (patch)
tree25ba4c1cc971df706a881e52b3361da419c7ca38 /fs/ext4/fast_commit.c
parentext4: remove extent cache entries when truncating inline data (diff)
downloadlinux-948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9.tar.xz
linux-948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9.zip
ext4: enforce buffer head state assertion in ext4_da_map_blocks
Remove the code that re-initializes a buffer head with an invalid block number and BH_New and BH_Delay bits when a matching delayed and unwritten block has been found in the extent status cache. Replace it with assertions that verify the buffer head already has this state correctly set. The current code masked an inline data truncation bug that left stale entries in the extent status cache. With this change, generic/130 can be used to reproduce and detect that bug. Signed-off-by: Eric Whitney <enwlinux@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Link: https://lore.kernel.org/r/20210819144927.25163-3-enwlinux@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions