diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-01-11 23:40:24 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-23 03:48:53 +0100 |
commit | 0b54fb8458199dbed409abb06933c27439ea0911 (patch) | |
tree | 32da2196ef3fe6b1485a89ac7ae15833b293748d /fs/f2fs/debug.c | |
parent | f2fs: reorganize stat information (diff) | |
download | linux-0b54fb8458199dbed409abb06933c27439ea0911.tar.xz linux-0b54fb8458199dbed409abb06933c27439ea0911.zip |
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: /* build merge flush thread */ if (SM_I(sbi)->fcc_info) si->cache_mem += sizeof(struct flush_cmd_control); + if (SM_I(sbi)->dcc_info) + si->cache_mem += sizeof(struct discard_cmd_control); /* free nids */ si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID_LIST] + |