f2fs: return true if all cmd were issued or no cmd need to be issued for f2fs_issue_d...
authorYangtao Li <frank.li@vivo.com>
Thu, 12 Jan 2023 19:14:04 +0000 (03:14 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 31 Jan 2023 18:47:45 +0000 (10:47 -0800)
commitb1c5ef26e4e80277641afcfedffe598c3023c095
tree670bff7fdd893a8700da92319410981fed40c800
parentc1085957dece02bda586cbffc1328f3bca09325f
f2fs: return true if all cmd were issued or no cmd need to be issued for f2fs_issue_discard_timeout()

f2fs_issue_discard_timeout() returns whether discard cmds are dropped,
which does not match the meaning of the function. Let's change it to
return whether all discard cmd are issued.

After commit 4d67490498ac ("f2fs: Don't create discard thread when
device doesn't support realtime discard"), f2fs_issue_discard_timeout()
is alse called by f2fs_remount(). Since the comments of
f2fs_issue_discard_timeout() doesn't make much sense, let's update it.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
fs/f2fs/super.c