diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-01-13 03:14:04 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-01-31 10:47:45 -0800 |
commit | b1c5ef26e4e80277641afcfedffe598c3023c095 (patch) | |
tree | 670bff7fdd893a8700da92319410981fed40c800 /fs/ocfs2/locks.h | |
parent | c1085957dece02bda586cbffc1328f3bca09325f (diff) | |
download | linux-stable-b1c5ef26e4e80277641afcfedffe598c3023c095.tar.gz linux-stable-b1c5ef26e4e80277641afcfedffe598c3023c095.tar.bz2 linux-stable-b1c5ef26e4e80277641afcfedffe598c3023c095.zip |
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>
Diffstat (limited to 'fs/ocfs2/locks.h')
0 files changed, 0 insertions, 0 deletions