summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2021-09-03 00:54:40 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-03 19:58:12 +0300
commita7fddc36299a8a99073e9e6e922b6cd451508385 (patch)
treef845b479049a78f0f5f652e97046bf34fec1fff5 /virt
parent5e6e5a12a44ca5ff2b130d8d39aaf9b8c026de94 (diff)
downloadlinux-a7fddc36299a8a99073e9e6e922b6cd451508385.tar.xz
huge tmpfs: decide stat.st_blksize by shmem_is_huge()
4.18 commit 89fdcd262fd4 ("mm: shmem: make stat.st_blksize return huge page size if THP is on") added is_huge_enabled() to decide st_blksize: if hugeness is to be defined per file, that will need to be replaced by shmem_is_huge(). This does give a different answer (No) for small files on a "huge=within_size" mount: but that can be considered a minor bugfix. And a different answer (No) for default files on a "huge=advise" mount: I'm reluctant to complicate it, just to reproduce the same debatable answer as before. Link: https://lkml.kernel.org/r/af7fb3f9-4415-9e8e-fdac-b1a5253ad21@google.com Signed-off-by: Hugh Dickins <hughd@google.com> Reviewed-by: Yang Shi <shy828301@gmail.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Miaohe Lin <linmiaohe@huawei.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Rik van Riel <riel@surriel.com> Cc: Shakeel Butt <shakeelb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions