diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2023-09-21 15:44:14 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-16 15:44:37 -0700 |
commit | 6695cf68b15c215d33b8add64c33e01e3cbe236c (patch) | |
tree | fb526a833dc5af80b49f27c785c5b61c2495787f /mm/internal.h | |
parent | 667ffc31aa95e7023707924b08415523208bce9d (diff) | |
download | linux-6695cf68b15c215d33b8add64c33e01e3cbe236c.tar.gz linux-6695cf68b15c215d33b8add64c33e01e3cbe236c.tar.bz2 linux-6695cf68b15c215d33b8add64c33e01e3cbe236c.zip |
mm: memory: use a folio in do_numa_page()
Numa balancing only try to migrate non-compound page in do_numa_page(),
use a folio in it to save several compound_head calls, note we use
folio_estimated_sharers(), it is enough to check the folio sharers since
only normal page is handled, if large folio numa balancing is supported, a
precise folio sharers check would be used, no functional change intended.
Link: https://lkml.kernel.org/r/20230921074417.24004-4-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
0 files changed, 0 insertions, 0 deletions