]> git.ipfire.org Git - thirdparty/linux.git/commit
f2fs: disallow setting an extension to both cold and hot
authorYongpeng Yang <yangyongpeng@xiaomi.com>
Fri, 10 Apr 2026 15:05:37 +0000 (23:05 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Apr 2026 22:52:57 +0000 (22:52 +0000)
commitb8b902fd57fbaec70eb5ae2f0ec12a650ae62d96
tree2dc72b8d53113d46d148648b8fc4326003ed78d4
parented78aeebef05212ef7dca93bd931e4eff67c113f
f2fs: disallow setting an extension to both cold and hot

An extension should not exist in both the cold and hot extension lists
simultaneously. When adding a hot extension, check whether it already
exists in the cold list, and vice versa. Reject the operation with
-EINVAL if a conflict is found.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c