]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: correct the checking of quota files before moving extents
authorZhang Yi <yi.zhang@huawei.com>
Mon, 13 Oct 2025 01:51:17 +0000 (09:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:54:54 +0000 (13:54 +0100)
commita7abd40cbfcfdf073f79b19dbfc2543ad97d0c41
tree562ed3ff7f9cb7b72ad87ef96145938845590b7f
parent520de30d8c92b0f18ebd9bae0545b8c5c804434a
ext4: correct the checking of quota files before moving extents

[ Upstream commit a2e5a3cea4b18f6e2575acc444a5e8cce1fc8260 ]

The move extent operation should return -EOPNOTSUPP if any of the inodes
is a quota inode, rather than requiring both to be quota inodes.

Fixes: 02749a4c2082 ("ext4: add ext4_is_quota_file()")
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-ID: <20251013015128.499308-2-yi.zhang@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/move_extent.c