Files
msm-5.15/fs/f2fs
Chao Yu b70e2af3bd BACKPORT: f2fs: give priority to select unpinned section for foreground GC
Previously, during foreground GC, if victims contain data of pinned file,
it will fail migration of the data, and meanwhile i_gc_failures of that
pinned file may increase, and when it exceeds threshold, GC will unpin
the file, result in breaking pinfile's semantics.

In order to mitigate such condition, let's record and skip section which
has pinned file's data and give priority to select unpinned one.

Bug: 279387798
Signed-off-by: Chao Yu <chao.yu@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit bf123c9ddf34b3b6d0bb9b46f64478daf01b4f1f)
[drosen: Resolved trivial conflict in fs/f2fs/gc.c ]
Change-Id: Id18929506ff9ecadd48ae48f6734205a65af0bd8
2023-05-03 20:24:29 +00:00
..
2022-02-15 13:42:57 -08:00
2022-04-08 14:23:58 +02:00
2022-08-04 14:37:04 +02:00
2022-08-04 14:37:04 +02:00
2023-01-30 14:44:15 +00:00
2022-12-07 20:04:49 +00:00