]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: fix to check atomic_file in f2fs ioctl interfaces
authorChao Yu <chao@kernel.org>
Wed, 4 Sep 2024 03:20:47 +0000 (11:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Sep 2024 03:30:27 +0000 (03:30 +0000)
commitbfe5c02654261bfb8bd9cb174a67f3279ea99e58
tree27ea30d6f460402413b0d4a634153b481757c572
parent884ee6dc85b959bc152f15bca80c30f06069e6c4
f2fs: fix to check atomic_file in f2fs ioctl interfaces

Some f2fs ioctl interfaces like f2fs_ioc_set_pin_file(),
f2fs_move_file_range(), and f2fs_defragment_range() missed to
check atomic_write status, which may cause potential race issue,
fix it.

Cc: stable@vger.kernel.org
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c