diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-01-11 17:40:24 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-22 21:48:53 -0500 |
commit | 0b54fb8458199dbed409abb06933c27439ea0911 (patch) | |
tree | 32da2196ef3fe6b1485a89ac7ae15833b293748d /fs/f2fs/debug.c | |
parent | d4adb30f25f5f2aa9b205891e395251d2a9098be (diff) |
f2fs: factor out discard command info into discard_cmd_control
This patch adds discard_cmd_control with the existing discarding controls.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index cd338ca24941..f9f6b0aeba02 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -196,6 +196,8 @@ get_cache: | |||
196 | /* build merge flush thread */ | 196 | /* build merge flush thread */ |
197 | if (SM_I(sbi)->fcc_info) | 197 | if (SM_I(sbi)->fcc_info) |
198 | si->cache_mem += sizeof(struct flush_cmd_control); | 198 | si->cache_mem += sizeof(struct flush_cmd_control); |
199 | if (SM_I(sbi)->dcc_info) | ||
200 | si->cache_mem += sizeof(struct discard_cmd_control); | ||
199 | 201 | ||
200 | /* free nids */ | 202 | /* free nids */ |
201 | si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID_LIST] + | 203 | si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID_LIST] + |