Commit 2554743
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]>1 parent 15e38ee commit 2554743
2 files changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1664 | 1667 | | |
1665 | 1668 | | |
1666 | 1669 | | |
| |||
2116 | 2119 | | |
2117 | 2120 | | |
2118 | 2121 | | |
2119 | | - | |
2120 | | - | |
| 2122 | + | |
2121 | 2123 | | |
2122 | 2124 | | |
2123 | 2125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1581 | 1581 | | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | | - | |
1585 | | - | |
| 1584 | + | |
1586 | 1585 | | |
1587 | 1586 | | |
1588 | 1587 | | |
| |||
2233 | 2232 | | |
2234 | 2233 | | |
2235 | 2234 | | |
2236 | | - | |
2237 | 2235 | | |
2238 | 2236 | | |
2239 | 2237 | | |
| |||
2420 | 2418 | | |
2421 | 2419 | | |
2422 | 2420 | | |
2423 | | - | |
2424 | 2421 | | |
2425 | | - | |
2426 | | - | |
| 2422 | + | |
2427 | 2423 | | |
2428 | 2424 | | |
2429 | 2425 | | |
| |||
0 commit comments