From: <liuderong@oppo.com>
To: <jaegeuk@kernel.org>, <chao@kernel.org>
Cc: <linux-f2fs-devel@lists.sourceforge.net>,
<linux-kernel@vger.kernel.org>, liuderong <liuderong@oppo.com>
Subject: [PATCH v3 0/2] f2fs: modify the calculation method of mtime
Date: Wed, 18 Sep 2024 18:06:18 +0800 [thread overview]
Message-ID: <1726653980-590956-1-git-send-email-liuderong@oppo.com> (raw)
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
next reply other threads:[~2024-09-18 10:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 10:06 liuderong [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1726653980-590956-1-git-send-email-liuderong@oppo.com \
--to=liuderong@oppo.com \
--cc=chao@kernel.org \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®