]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: clean up the force parameter in __submit_merged_write_cond()
authorYongpeng Yang <yangyongpeng@xiaomi.com>
Sat, 27 Dec 2025 09:19:06 +0000 (17:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 1 Jan 2026 03:29:35 +0000 (03:29 +0000)
commit86c1cf0578c59c8e68185d86d03be846bcaef0e2
tree568bdfddfde36135f20c8aa82f979fff1aab9f78
parent761dac9073cd67d4705a94cd1af674945a117f4c
f2fs: clean up the force parameter in __submit_merged_write_cond()

The force parameter in __submit_merged_write_cond is redundant, where
`force == true` implies `inode == NULL && folio == NULL && ino == 0` is
true, and `force == false` implies `inode != NULL || folio != NULL ||
ino != 0` is true. Thus, this patch replaces the force parameter with
a stack variable force.

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/data.c