diff options
author | Yangtao Li <[email protected]> | 2022-11-29 20:29:28 +0800 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2023-01-11 11:15:18 -0800 |
commit | b5a711acab305e04278c136c841ba37c589c16a1 (patch) | |
tree | 77229ac9cfdea262d33157170ff4f58a1206248b /tools/perf/scripts/python/stat-cpi.py | |
parent | ebaaec351e4fef86afe38002b6a8c15178fd3610 (diff) |
f2fs: judge whether discard_unit is section only when have CONFIG_BLK_DEV_ZONED
The current logic, regardless of whether CONFIG_BLK_DEV_ZONED
is enabled or not, will judge whether discard_unit is SECTION,
when f2fs_sb_has_blkzoned.
In fact, when CONFIG_BLK_DEV_ZONED is not enabled, this judgment
is a path that will never be accessed. At this time, -EINVAL will
be returned in the parse_options function, accompanied by the
message "Zoned block device support is not enabled".
Let's wrap this discard_unit judgment with CONFIG_BLK_DEV_ZONED.
Signed-off-by: Yangtao Li <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions