meminfo, thp: modify ifdef coverage to remove unexpected variable printing 76/265076/3
authorSung-hun Kim <sfoon.kim@samsung.com>
Thu, 30 Sep 2021 00:37:45 +0000 (09:37 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Tue, 12 Oct 2021 03:12:02 +0000 (12:12 +0900)
commitf90f5c8c5d68f6a212e6f62e329b5d7b75b6b9d5
treed8e91ef11390336d01157a9d1e07391512ebcb65
parent5b61243f1343850f11e583e0e8dd4ffc37bef580
meminfo, thp: modify ifdef coverage to remove unexpected variable printing

If the system uses fTHP, the user can show statistics of
hugepage-mapped CMA pages via /proc/meminfo.
Otherwise, the user does not need to aware of such variables.
This patch removes such exported variables when fTHP-disabled
kernel is used.

Change-Id: Iaff9dd8d81da1a3caa60959b9c5c1f44544f30d4
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
fs/proc/meminfo.c