diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-01-04 19:40:29 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-01-30 13:23:51 -0800 |
commit | 120e0ea12d90ad15127ad50944975fc8c81666b7 (patch) | |
tree | 2f2b3f1eb12fd74cbce49ad9ef00cf8a171e16e4 /fs/f2fs/f2fs.h | |
parent | c5f9db2548d0ac988df81aa34cc63f3b2ed374f9 (diff) | |
download | lwn-120e0ea12d90ad15127ad50944975fc8c81666b7.tar.gz lwn-120e0ea12d90ad15127ad50944975fc8c81666b7.zip |
f2fs: introduce discard_io_aware_gran sysfs node
The current discard_io_aware_gran is a fixed value, change it to be
configurable through the sys node.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 331c330ea31d..f3c5f7740c1a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -409,6 +409,7 @@ struct discard_cmd_control { unsigned int min_discard_issue_time; /* min. interval between discard issue */ unsigned int mid_discard_issue_time; /* mid. interval between discard issue */ unsigned int max_discard_issue_time; /* max. interval between discard issue */ + unsigned int discard_io_aware_gran; /* minimum discard granularity not be aware of I/O */ unsigned int discard_urgent_util; /* utilization which issue discard proactively */ unsigned int discard_granularity; /* discard granularity */ unsigned int max_ordered_discard; /* maximum discard granularity issued by lba order */ |