aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorYangtao Li <[email protected]>2022-12-02 04:58:41 +0000
committerJaegeuk Kim <[email protected]>2022-12-12 22:59:38 +0000
commit25547439f1dcc3def6062bd3e69165cd806a594e (patch)
tree20e91d22d362ec64c56f64d4fb28770634cfdf50 /lib/fault-inject.c
parentf2fs: fix iostat parameter for discard (diff)
downloadkernel-25547439f1dcc3def6062bd3e69165cd806a594e.tar.gz
kernel-25547439f1dcc3def6062bd3e69165cd806a594e.zip
f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super()
No need to call f2fs_issue_discard_timeout() in f2fs_put_super, when no discard command requires issue. Since the caller of f2fs_issue_discard_timeout() usually judges the number of discard commands before using it. Let's move this logic to f2fs_issue_discard_timeout(). By the way, use f2fs_realtime_discard_enable to simplify the code. Reported-by: kernel test robot <[email protected]> Signed-off-by: Yangtao Li <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions