diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-03-26 17:43:56 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-04-03 10:21:31 -0700 |
commit | 6ce48b0c6eabce3f770581ff7f07944c28fce070 (patch) | |
tree | 9676d4d35470f0447384c3c5ebd44c15c51dce87 /fs/f2fs/f2fs.h | |
parent | 8908e753109fd7abb4949a3d6118a9a5e3766ea0 (diff) | |
download | lwn-6ce48b0c6eabce3f770581ff7f07944c28fce070.tar.gz lwn-6ce48b0c6eabce3f770581ff7f07944c28fce070.zip |
f2fs: switch discard_policy.timeout to bool type
While checking discard timeout, we use specified type
UMOUNT_DISCARD_TIMEOUT, so just replace doplicy.timeout with
it, and switch doplicy.timeout to bool type.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 8d206dcc33ab..c44afc598638 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -330,8 +330,8 @@ struct discard_policy { bool io_aware; /* issue discard in idle time */ bool sync; /* submit discard with REQ_SYNC flag */ bool ordered; /* issue discard by lba order */ + bool timeout; /* discard timeout for put_super */ unsigned int granularity; /* discard granularity */ - int timeout; /* discard timeout for put_super */ }; struct discard_cmd_control { |