diff mbox series

rmap: remove DEFINE_PAGE_VMA_WALK()

Message ID 20240524053618.208895-1-wangkefeng.wang@huawei.com (mailing list archive)
State New
Headers show
Series rmap: remove DEFINE_PAGE_VMA_WALK() | expand

Commit Message

Kefeng Wang May 24, 2024, 5:36 a.m. UTC
This is no more user since commit 40d707f33db5 ("mm/ksm: use folio in
write_protect_page"), so remove DEFINE_PAGE_VMA_WALK().

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 include/linux/rmap.h | 10 ----------
 1 file changed, 10 deletions(-)

Comments

David Hildenbrand May 24, 2024, 6:57 a.m. UTC | #1
On 24.05.24 07:36, Kefeng Wang wrote:
> This is no more user since commit 40d707f33db5 ("mm/ksm: use folio in
> write_protect_page"), so remove DEFINE_PAGE_VMA_WALK().
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index 7229b9baf20d..628790d30b3a 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -681,16 +681,6 @@  struct page_vma_mapped_walk {
 	unsigned int flags;
 };
 
-#define DEFINE_PAGE_VMA_WALK(name, _page, _vma, _address, _flags)	\
-	struct page_vma_mapped_walk name = {				\
-		.pfn = page_to_pfn(_page),				\
-		.nr_pages = compound_nr(_page),				\
-		.pgoff = page_to_pgoff(_page),				\
-		.vma = _vma,						\
-		.address = _address,					\
-		.flags = _flags,					\
-	}
-
 #define DEFINE_FOLIO_VMA_WALK(name, _folio, _vma, _address, _flags)	\
 	struct page_vma_mapped_walk name = {				\
 		.pfn = folio_pfn(_folio),				\