]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: use EXT4_B_TO_LBLK() in mext_check_arguments()
authorZhang Yi <yi.zhang@huawei.com>
Mon, 13 Oct 2025 01:51:21 +0000 (09:51 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Nov 2025 15:44:39 +0000 (10:44 -0500)
commitc9570b6634243cc7a55307dffd1965a3b8798591
treefb932954245172b52e5dab937ef2ee97228c9b2c
parent07c440e8da8fee5b3512a5742ddc71776a0041ac
ext4: use EXT4_B_TO_LBLK() in mext_check_arguments()

Switch to using EXT4_B_TO_LBLK() to calculate the EOF position of the
origin and donor inodes, instead of using open-coded calculations.

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