[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 12 Dec 2022 21:05:54 +0800
From: Yangtao Li <frank.li@...o.com>
To: jaegeuk@...nel.org, chao@...nel.org
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super()
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
Powered by blists - more mailing lists