From: Yangtao Li <frank.li@vivo.com>
To: jaegeuk@kernel.org, chao@kernel.org
Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super()
Date: Mon, 12 Dec 2022 21:05:54 +0800 [thread overview]
Message-ID: <20221212130554.79049-1-frank.li@vivo.com> (raw)
In-Reply-To: <3f2c81f8-7946-d2e0-8768-6f0b03282944@kernel.org>
Hi,
> static inline bool f2fs_realtime_discard_enable(struct f2fs_sb_info *sbi) {
> return (test_opt(sbi, DISCARD) && f2fs_hw_support_discard(sbi)) ||
> f2fs_hw_should_discard(sbi);
> }
> It looks the logic is changed?
For a storage device that does not support discard, and we have not actually
issued any discard command. I don't think it is necessary and f2fs should not
be equipped with trim markers.
Thx,
Yangtao
next prev parent reply other threads:[~2022-12-12 13:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 4:58 Yangtao Li
2022-12-11 2:27 ` Chao Yu
2022-12-12 13:05 ` Yangtao Li [this message]
2022-12-12 13:50 ` Chao Yu
2022-12-12 14:14 ` Yangtao Li
2022-12-12 14:34 ` Chao Yu
2022-12-12 22:45 ` Jaegeuk Kim
2022-12-13 1:32 ` Chao Yu
2022-12-13 1:41 ` Jaegeuk Kim
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=20221212130554.79049-1-frank.li@vivo.com \
--to=frank.li@vivo.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®