mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] f2fs: modify the calculation method of mtime
@ 2024-09-18 10:06 liuderong
  2024-09-18 10:06 ` [PATCH v3 1/2] f2fs: remove unused parameters liuderong
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: liuderong @ 2024-09-18 10:06 UTC (permalink / raw)
  To: jaegeuk, chao; +Cc: linux-f2fs-devel, linux-kernel, liuderong

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 blocks,
in order to select correct victim segment,
it needs to modify the calculation method of mtime.

v3:
- add new define INVALID_MTIME and rename new API:f2fs_get_section_mtime

v2:
- modify new API:get_section_mtime

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

 fs/f2fs/f2fs.h    |  5 +++--
 fs/f2fs/gc.c      | 23 +++++++----------------
 fs/f2fs/segment.c | 38 +++++++++++++++++++++++++++++++-------
 fs/f2fs/segment.h |  6 ++++--
 4 files changed, 45 insertions(+), 27 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-28 17:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 10:06 [PATCH v3 0/2] f2fs: modify the calculation method of mtime liuderong
2024-09-18 10:06 ` [PATCH v3 1/2] f2fs: remove unused parameters liuderong
2024-09-18 10:06 ` [PATCH v3 2/2] f2fs: introduce f2fs_get_section_mtime liuderong
2024-09-19  1:36   ` Chao Yu
2024-10-28 17:40 ` [f2fs-dev] [PATCH v3 0/2] f2fs: modify the calculation method of mtime patchwork-bot+f2fs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome