]> git.ipfire.org Git - thirdparty/linux.git/commit
mm: remove redundant pXd_devmap calls
authorAlistair Popple <apopple@nvidia.com>
Thu, 19 Jun 2025 08:57:59 +0000 (18:57 +1000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:17 +0000 (22:42 -0700)
commit8a6a984c2e0ea406459b445a3910a454bece3aa1
tree844a6817b3fa924599be1222c4cc66661fb19fd7
parent7b2ae3c47f65bc75985caaaba9f2fb601eebca20
mm: remove redundant pXd_devmap calls

DAX was the only thing that created pmd_devmap and pud_devmap entries
however it no longer does as DAX pages are now refcounted normally and
pXd_trans_huge() returns true for those.  Therefore checking both
pXd_devmap and pXd_trans_huge() is redundant and the former can be removed
without changing behaviour as it will always be false.

Link: https://lkml.kernel.org/r/d58f089dc16b7feb7c6728164f37dea65d64a0d3.1750323463.git-series.apopple@nvidia.com
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Cc: Balbir Singh <balbirs@nvidia.com>
Cc: Björn Töpel <bjorn@kernel.org>
Cc: Björn Töpel <bjorn@rivosinc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Deepak Gupta <debug@rivosinc.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Inki Dae <m.szyprowski@samsung.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Groves <john@groves.net>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
15 files changed:
fs/dax.c
include/linux/huge_mm.h
include/linux/pgtable.h
mm/hmm.c
mm/huge_memory.c
mm/mapping_dirty_helpers.c
mm/memory.c
mm/migrate_device.c
mm/mprotect.c
mm/mremap.c
mm/page_vma_mapped.c
mm/pagewalk.c
mm/pgtable-generic.c
mm/userfaultfd.c
mm/vmscan.c