summaryrefslogtreecommitdiff
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2025-10-29 14:31:04 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2025-12-04 02:00:03 +0000
commit5b5578c3b06eba4c256bc3a2788f5a65cd9f31ea (patch)
treece3e68ae50699526753f8c0dd3cc51162b4c6da6 /rust/helpers/mutex.c
parent297baa4aa263ff8f5b3d246ee16a660d76aa82c4 (diff)
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>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions