f2fs: add proc entry to show discard_plist info
authorYangtao Li <frank.li@vivo.com>
Tue, 25 Oct 2022 13:26:38 +0000 (21:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 11 Nov 2022 17:48:24 +0000 (09:48 -0800)
commit225d6795abf47c3340214ca1b4c22728e463db4f
treeddcfec96bd480a51fb0018adca4c02d83b18cd7e
parente6ecb142429183cef4835f31d4134050ae660032
f2fs: add proc entry to show discard_plist info

This patch adds a new proc entry to show discard_plist
information in more detail, which is very helpful to
know the discard pend list count clearly.

Such as:

Discard pend list(Show diacrd_cmd count on each entry, .:not exist):
  0       390     156      85      67      46      37      26      14
  8        17      12       9       9       6      12      11      10
  16        5       9       2       4       8       3       4       1
  24        3       2       2       5       2       4       5       4
  32        3       3       2       3       .       3       3       1
  40        .       4       1       3       2       1       2       1
  48        1       .       1       1       .       1       1       .
  56        .       1       1       1       .       2       .       1
  64        1       2       .       .       .       .       .       .
  72        .       1       .       .       .       .       .       .
  80        3       1       .       .       1       1       .       .
  88        1       .       .       .       1       .       .       1
......

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c