]> git.ipfire.org Git - thirdparty/linux.git/commit
f2fs: fix to access i_size w/ i_size_read()
authorChao Yu <chao@kernel.org>
Wed, 29 Oct 2025 06:31:04 +0000 (14:31 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 4 Dec 2025 02:00:03 +0000 (02:00 +0000)
commit5b5578c3b06eba4c256bc3a2788f5a65cd9f31ea
treece3e68ae50699526753f8c0dd3cc51162b4c6da6
parent297baa4aa263ff8f5b3d246ee16a660d76aa82c4
f2fs: fix to access i_size w/ i_size_read()

It recommends to use i_size_{read,write}() to access and update i_size,
otherwise, we may get wrong tearing value due to high 32-bits value
and low 32-bits value of i_size field are not updated atomically in
32-bits archicture machine.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/trace/events/f2fs.h