]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: pass out extent seq counter when mapping blocks
authorZhang Yi <yi.zhang@huawei.com>
Mon, 13 Oct 2025 01:51:20 +0000 (09:51 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Nov 2025 15:44:39 +0000 (10:44 -0500)
commit07c440e8da8fee5b3512a5742ddc71776a0041ac
tree534a99d2457f5515bde03800ae56a854b330dd9d
parent7da5565cab4069b2b171dbfa7554b596a7fdf827
ext4: pass out extent seq counter when mapping blocks

When creating or querying mapping blocks using the ext4_map_blocks() and
ext4_map_{query|create}_blocks() helpers, also pass out the extent
sequence number of the block mapping info through the ext4_map_blocks
structure. This sequence number can later serve as a valid cookie within
iomap infrastructure and the move extents procedure.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-ID: <20251013015128.499308-5-yi.zhang@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inode.c