mbox series

[f2fs-dev,v1,0/2] f2fs: modify the calculation method of mtime

Message ID 1726022421-58677-1-git-send-email-liuderong@oppo.com (mailing list archive)
Headers show
Series f2fs: modify the calculation method of mtime | expand

Message

liuderong--- via Linux-f2fs-devel Sept. 11, 2024, 2:40 a.m. UTC
From: liuderong <liuderong@oppo.com>

In cost-benefit GC algorithm, mtime will affect
the selection of victim segment.For a large section,
mtime should be the mean value of valid segments,
in order to select correct victim segment,
it needs to modify the calculation method of mtime.

liuderong (2):
  f2fs: remove unused parameters
  f2fs: introduce get_section_mtime

 fs/f2fs/f2fs.h    |  5 +++--
 fs/f2fs/gc.c      | 21 +++++----------------
 fs/f2fs/segment.c | 52 +++++++++++++++++++++++++++++++++++++++++++++-------
 fs/f2fs/segment.h |  4 ++--
 4 files changed, 55 insertions(+), 27 deletions(-)

--
2.7.4