diff options
author | Chao Yu <chao@kernel.org> | 2025-02-24 14:20:07 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-02-28 16:22:56 +0000 |
commit | 1b60b23975d6d81703826e3797738e471c3009c6 (patch) | |
tree | 67ab3be1c27425bfa319590e1e3c0d24ca0ae9bd /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a907f3a68ee26ba493a08a958809208d17f3347e (diff) |
f2fs: fix to set .discard_granularity correctly
commit 4f993264fe29 ("f2fs: introduce discard_unit mount option") introduced
a bug, when we enable discard_unit=section option, it will set
.discard_granularity to BLKS_PER_SEC(), however discard granularity only
supports [1, 512], once section size is not equal to segment size, it will
cause issue_discard_thread() in DPOLICY_BG mode will not select discard entry
w/ any granularity to issue.
Fixes: 4f993264fe29 ("f2fs: introduce discard_unit mount option")
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Yohan Joung <yohan.joung@sk.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions