]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: propagate flags to convert_initialized_extent()
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Fri, 23 Jan 2026 06:25:35 +0000 (11:55 +0530)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:28 +0000 (07:20 -0500)
commitb67b96bddf7a5a2bb865414212f0c0551deca57c
tree46f349fbf341ac6a36e9fe7d2de452b5bddbed8f
parent9ff599a9be784a808c36765086e3db2144aa3b66
ext4: propagate flags to convert_initialized_extent()

[ Upstream commit 3fffa44b6ebf65be92a562a5063303979385a1c9 ]

Currently, ext4_zero_range passes EXT4_EX_NOCACHE flag to avoid caching
extents however this is not respected by convert_initialized_extent().
Hence, modify it to accept flags from the caller and to pass the flags
on to other extent manipulation functions it calls. This makes
sure the NOCACHE flag is respected throughout the code path.

Also, we no longer explicitly pass CONVERT_UNWRITTEN as the caller takes
care of this.

Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://patch.msgid.link/07008fbb14db727fddcaf4c30e2346c49f6c8fe0.1769149131.git.ojaswin@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/extents.c