]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: add mext_check_validity() to do basic check
authorZhang Yi <yi.zhang@huawei.com>
Mon, 13 Oct 2025 01:51:22 +0000 (09:51 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Nov 2025 15:44:39 +0000 (10:44 -0500)
commit22218516e462d59b27ffcfc9dd75d4f98e482c51
treeca4343017b6273d61666c8074ecd5599809c059b
parentc9570b6634243cc7a55307dffd1965a3b8798591
ext4: add mext_check_validity() to do basic check

Currently, the basic validation checks during the move extent operation
are scattered across __ext4_ioctl() and ext4_move_extents(), which makes
the code somewhat disorganized. Introduce a new helper,
mext_check_validity(), to handle these checks. This change involves only
code relocation without any logical modifications.

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