Commit 6bb47c93 authored by Luis Henriques (SUSE)'s avatar Luis Henriques (SUSE) Committed by Greg Kroah-Hartman
Browse files

ext4: don't track ranges in fast_commit if inode has inlined data

[ Upstream commit 7882b018 ]

When fast-commit needs to track ranges, it has to handle inodes that have
inlined data in a different way because ext4_fc_write_inode_data(), in the
actual commit path, will attempt to map the required blocks for the range.
However, inodes that have inlined data will have it's data stored in
inode->i_block and, eventually, in the extended attribute space.

Unfortunately, because fast commit doesn't currently support extended
attributes, the solution is to mark this commit as ineligible.

Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039883


Signed-off-by: default avatarLuis Henriques (SUSE) <luis.henriques@linux.dev>
Tested-by: default avatarBen Hutchings <benh@debian.org>
Fixes: 9725958b ("ext4: fast commit may miss tracking unwritten range during ftruncate")
Link: https://patch.msgid.link/20240618144312.17786-1-luis.henriques@linux.dev


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8087b639
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment