Commit afe9084
ext4: propagate flags to convert_initialized_extent()
[ Upstream commit 3fffa44 ]
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>1 parent 899ef00 commit afe9084
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3853 | 3853 | | |
3854 | 3854 | | |
3855 | 3855 | | |
| 3856 | + | |
3856 | 3857 | | |
3857 | 3858 | | |
3858 | 3859 | | |
| |||
3878 | 3879 | | |
3879 | 3880 | | |
3880 | 3881 | | |
3881 | | - | |
| 3882 | + | |
3882 | 3883 | | |
3883 | 3884 | | |
3884 | 3885 | | |
3885 | | - | |
| 3886 | + | |
3886 | 3887 | | |
3887 | 3888 | | |
3888 | 3889 | | |
| |||
4294 | 4295 | | |
4295 | 4296 | | |
4296 | 4297 | | |
4297 | | - | |
| 4298 | + | |
4298 | 4299 | | |
4299 | 4300 | | |
4300 | 4301 | | |
| |||
0 commit comments