mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm: Remove stray references to struct pagevec
@ 2026-02-25 17:57 Tal Zussman
  2026-02-25 20:47 ` Matthew Wilcox
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tal Zussman @ 2026-02-25 17:57 UTC (permalink / raw)
  To: David Howells, Marc Dionne, Jaegeuk Kim, Chao Yu, Andrew Morton,
	David Hildenbrand, Lorenzo Stoakes, Liam R. Howlett,
	Vlastimil Babka, Mike Rapoport, Suren Baghdasaryan, Michal Hocko,
	Chris Li, Kairui Song, Kemeng Shi, Nhat Pham, Baoquan He,
	Barry Song, Matthew Wilcox
  Cc: linux-afs, linux-kernel, linux-f2fs-devel, linux-mm, Tal Zussman

struct pagevec was removed in commit 1e0877d58b1e ("mm: remove struct
pagevec"). Remove remaining forward declarations and change
__folio_batch_release()'s declaration to match its definition.

Signed-off-by: Tal Zussman <tz2294@columbia.edu>
---
Happy to rename PAGEVEC_SIZE and pagevec.h if desired too, but that'd be
~65 more lines of churn... Although it looks like there are plenty of .c
files that include it for no reason, so could be a good opportunity to
remove those.
---
 fs/afs/internal.h       | 1 -
 fs/f2fs/f2fs.h          | 2 --
 include/linux/pagevec.h | 2 +-
 include/linux/swap.h    | 2 --
 4 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/fs/afs/internal.h b/fs/afs/internal.h
index 009064b8d661..599353c33337 100644
--- a/fs/afs/internal.h
+++ b/fs/afs/internal.h
@@ -31,7 +31,6 @@
 
 #define AFS_CELL_MAX_ADDRS 15
 
-struct pagevec;
 struct afs_call;
 struct afs_vnode;
 struct afs_server_probe;
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index bb34e864d0ef..d9e8531a5301 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -28,8 +28,6 @@
 #include <linux/fscrypt.h>
 #include <linux/fsverity.h>
 
-struct pagevec;
-
 #ifdef CONFIG_F2FS_CHECK_FS
 #define f2fs_bug_on(sbi, condition)	BUG_ON(condition)
 #else
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h
index 63be5a451627..007affabf335 100644
--- a/include/linux/pagevec.h
+++ b/include/linux/pagevec.h
@@ -93,7 +93,7 @@ static inline struct folio *folio_batch_next(struct folio_batch *fbatch)
 	return fbatch->folios[fbatch->i++];
 }
 
-void __folio_batch_release(struct folio_batch *pvec);
+void __folio_batch_release(struct folio_batch *fbatch);
 
 static inline void folio_batch_release(struct folio_batch *fbatch)
 {
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 0effe3cc50f5..4b1f13b5bbad 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -20,8 +20,6 @@ struct notifier_block;
 
 struct bio;
 
-struct pagevec;
-
 #define SWAP_FLAG_PREFER	0x8000	/* set if swap priority specified */
 #define SWAP_FLAG_PRIO_MASK	0x7fff
 #define SWAP_FLAG_DISCARD	0x10000 /* enable discard for swap */

---
base-commit: 957a3fab8811b455420128ea5f41c51fd23eb6c7
change-id: 20260225-pagevec_cleanup-d47c16cb0f2d

Best regards,
-- 
Tal Zussman <tz2294@columbia.edu>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm: Remove stray references to struct pagevec
  2026-02-25 17:57 [PATCH] mm: Remove stray references to struct pagevec Tal Zussman
@ 2026-02-25 20:47 ` Matthew Wilcox
  2026-02-25 23:46   ` Tal Zussman
  2026-02-25 20:52 ` David Hildenbrand (Arm)
  2026-02-25 21:30 ` Chris Li
  2 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 2026-02-25 20:47 UTC (permalink / raw)
  To: Tal Zussman
  Cc: David Howells, Marc Dionne, Jaegeuk Kim, Chao Yu, Andrew Morton,
	David Hildenbrand, Lorenzo Stoakes, Liam R. Howlett,
	Vlastimil Babka, Mike Rapoport, Suren Baghdasaryan, Michal Hocko,
	Chris Li, Kairui Song, Kemeng Shi, Nhat Pham, Baoquan He,
	Barry Song, linux-afs, linux-kernel, linux-f2fs-devel, linux-mm

On Wed, Feb 25, 2026 at 12:57:16PM -0500, Tal Zussman wrote:
> struct pagevec was removed in commit 1e0877d58b1e ("mm: remove struct
> pagevec"). Remove remaining forward declarations and change
> __folio_batch_release()'s declaration to match its definition.
> 
> Signed-off-by: Tal Zussman <tz2294@columbia.edu>

Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>

> ---
> Happy to rename PAGEVEC_SIZE and pagevec.h if desired too, but that'd be
> ~65 more lines of churn... Although it looks like there are plenty of .c
> files that include it for no reason, so could be a good opportunity to
> remove those.

Yes, there's lots of cleanup work here that I didn't get around to!
Thanks for taking on this much, and any more work you want to do in this
area will be lovely.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm: Remove stray references to struct pagevec
  2026-02-25 17:57 [PATCH] mm: Remove stray references to struct pagevec Tal Zussman
  2026-02-25 20:47 ` Matthew Wilcox
@ 2026-02-25 20:52 ` David Hildenbrand (Arm)
  2026-02-25 21:30 ` Chris Li
  2 siblings, 0 replies; 5+ messages in thread
From: David Hildenbrand (Arm) @ 2026-02-25 20:52 UTC (permalink / raw)
  To: Tal Zussman, David Howells, Marc Dionne, Jaegeuk Kim, Chao Yu,
	Andrew Morton, Lorenzo Stoakes, Liam R. Howlett, Vlastimil Babka,
	Mike Rapoport, Suren Baghdasaryan, Michal Hocko, Chris Li,
	Kairui Song, Kemeng Shi, Nhat Pham, Baoquan He, Barry Song,
	Matthew Wilcox
  Cc: linux-afs, linux-kernel, linux-f2fs-devel, linux-mm

On 2/25/26 18:57, Tal Zussman wrote:
> struct pagevec was removed in commit 1e0877d58b1e ("mm: remove struct
> pagevec"). Remove remaining forward declarations and change
> __folio_batch_release()'s declaration to match its definition.
> 
> Signed-off-by: Tal Zussman <tz2294@columbia.edu>

Acked-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm: Remove stray references to struct pagevec
  2026-02-25 17:57 [PATCH] mm: Remove stray references to struct pagevec Tal Zussman
  2026-02-25 20:47 ` Matthew Wilcox
  2026-02-25 20:52 ` David Hildenbrand (Arm)
@ 2026-02-25 21:30 ` Chris Li
  2 siblings, 0 replies; 5+ messages in thread
From: Chris Li @ 2026-02-25 21:30 UTC (permalink / raw)
  To: Tal Zussman
  Cc: David Howells, Marc Dionne, Jaegeuk Kim, Chao Yu, Andrew Morton,
	David Hildenbrand, Lorenzo Stoakes, Liam R. Howlett,
	Vlastimil Babka, Mike Rapoport, Suren Baghdasaryan, Michal Hocko,
	Kairui Song, Kemeng Shi, Nhat Pham, Baoquan He, Barry Song,
	Matthew Wilcox, linux-afs, linux-kernel, linux-f2fs-devel,
	linux-mm

Thanks for doing this.

On Wed, Feb 25, 2026 at 9:57 AM Tal Zussman <tz2294@columbia.edu> wrote:
>
> struct pagevec was removed in commit 1e0877d58b1e ("mm: remove struct
> pagevec"). Remove remaining forward declarations and change
> __folio_batch_release()'s declaration to match its definition.
>
> Signed-off-by: Tal Zussman <tz2294@columbia.edu>

Acked-by: Chris Li <chrisl@kernel.org>

Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm: Remove stray references to struct pagevec
  2026-02-25 20:47 ` Matthew Wilcox
@ 2026-02-25 23:46   ` Tal Zussman
  0 siblings, 0 replies; 5+ messages in thread
From: Tal Zussman @ 2026-02-25 23:46 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-afs, linux-kernel, linux-f2fs-devel, linux-mm

On Wed, Feb 25, 2026 at 3:47 PM Matthew Wilcox <willy@infradead.org> wrote:
> On Wed, Feb 25, 2026 at 12:57:16PM -0500, Tal Zussman wrote:
> > struct pagevec was removed in commit 1e0877d58b1e ("mm: remove struct
> > pagevec"). Remove remaining forward declarations and change
> > __folio_batch_release()'s declaration to match its definition.
> >
> > Signed-off-by: Tal Zussman <tz2294@columbia.edu>
>
> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
>
> > ---
> > Happy to rename PAGEVEC_SIZE and pagevec.h if desired too, but that'd be
> > ~65 more lines of churn... Although it looks like there are plenty of .c
> > files that include it for no reason, so could be a good opportunity to
> > remove those.
>
> Yes, there's lots of cleanup work here that I didn't get around to!
> Thanks for taking on this much, and any more work you want to do in this
> area will be lovely.

Thanks! Just sent a v2 with 3 more cleanup patches.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-25 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-25 17:57 [PATCH] mm: Remove stray references to struct pagevec Tal Zussman
2026-02-25 20:47 ` Matthew Wilcox
2026-02-25 23:46   ` Tal Zussman
2026-02-25 20:52 ` David Hildenbrand (Arm)
2026-02-25 21:30 ` Chris Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®