summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorWenjie Qi <qwjhust@gmail.com>2026-10-16 13:44:05 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2026-10-19 15:32:32 +0000
commita6ede405455106bf42164ec96fd84008c5aabdd9 (patch)
tree0197f0fb93951b706a91ca526c8cfee848866b01 /tools/lib/python
parentf5924de8867c09206ba631b9faed63862ec00a10 (diff)
f2fs: flush SIT journal during filesystem resize
During a filesystem resize, SBI_IS_RESIZEFS prevents new SIT entries from being added to the journal and forces existing entries to the SIT area. However, f2fs_flush_sit_entries() returns early when there are no new dirty sentries, leaving existing journal entries behind. After the main area shrinks, a later checkpoint can access a journal entry whose segment number is outside the new geometry and trigger f2fs_bug_on(). Only take the zero-dirty fast path when entries may be written back to the journal. This lets resize drain existing entries through remove_sits_in_journal() even when there are no new dirty sentries. Cc: stable@kernel.org Fixes: 04f0b2eaa3b3 ("f2fs: ioctl for removing a range from F2FS") Signed-off-by: Wenjie Qi <qiwenjie@xiaomi.com> Reviewed-by: Daeho Jeong <daehojeong@google.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