f2fs: count discard command entry
authorChao Yu <yuchao0@huawei.com>
Sat, 25 Mar 2017 09:19:59 +0000 (17:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Apr 2017 18:05:03 +0000 (11:05 -0700)
commit5f32366a29b48bf6878ede83149819e38999c2fd
tree9d84e4d042d90c623ef4333b87f70e3f27d6256f
parent8b8dd65f72ccbf7111eb97c4c4f5b5df2a412a07
f2fs: count discard command entry

Adds to count discard command entry and show the number in debugfs,
also fix to add cost of discard command cache into total comsumed
memory footprint.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c