summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorZhiguo Niu <zhiguo.niu@unisoc.com>2026-09-10 11:02:43 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2026-09-14 15:21:48 +0000
commit06768d77ed956b4bf0b588fcff2fae8cfcb67269 (patch)
tree08d7196cb3d6cc7df82a68d39243a73ef7fe278d /tools/lib/python
parente398da0b9131583e0f52bca733eaefc3b3aeae95 (diff)
f2fs: fix to record both APPEND and UPDATE ino entries
In f2fs_post_evict_inode(), record_bits is assigned with BIT(APPEND_INO) and BIT(UPDATE_INO) respectively, so the second assignment overwrites the first one: when both FI_APPEND_WRITE and FI_UPDATE_WRITE are set, only the UPDATE_INO entry is recorded. The two flags are not mutually exclusive.Once the APPEND_INO entry is lost after the inode eviction, the shortcut in f2fs_do_sync_file() can take the flush_out path in the next fsync(), skipping f2fs_fsync_node_pages(). As a result, the dnodes holding the newly allocated blocks are not fsync-marked, and after a sudden power loss, the data appended before the eviction is silently lost. This restores the previous behavior where the two ino entries were added independently. Fixes: 314c9e476ffc ("f2fs: call __add_ino_entry out of the eviction path") Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions