fs: do not update nr_thps for mappings which support THPs

Linux Kernel / Linux Kernel - Matthew Wilcox (Oracle) [infradead.org] - 16 October 2020 18:11 UTC

The nr_thps counter is to support THPs in the page cache when the filesystem doesn't understand THPs. Eventually it will be removed, but we should still support filesystems which do not understand THPs yet. Move the nr_thp manipulation functions to filemap.h since they're page-cache specific.

6f4d2f9770cf fs: do not update nr_thps for mappings which support THPs
include/linux/fs.h | 27 ---------------------------
include/linux/pagemap.h | 29 +++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 27 deletions(-)

Upstream: git.kernel.org


  • Share