mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
f2fs: fix to not account invalid blocks in get_left_section_blocks()
commit37345eae9dupstream. w/ LFS mode, in get_left_section_blocks(), we should not account the blocks which were used before and now are invalided, otherwise those blocks will be counted as freed one in has_curseg_enough_space(), result in missing to trigger GC in time. Cc: stable@kernel.org Fixes:249ad438e1("f2fs: add a method for calculating the remaining blocks in the current segment in LFS mode.") Fixes:bf34c93d26("f2fs: check curseg space before foreground GC") Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2efb6b9c5b
commit
51659b9189
1 changed files with 5 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue