Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: remove stray references to struct pagevec

Patch series "mm: Remove stray references to pagevec", v2.

struct pagevec was removed in commit 1e0877d58b1e ("mm: remove struct
pagevec"). Remove any stray references to it and rename relevant files
and macros accordingly.

While at it, remove unnecessary #includes of pagevec.h (now folio_batch.h)
in .c files. There are probably more of these that could be removed in .h
files, but those are more complex to verify.


This patch (of 4):

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.

Link: https://lkml.kernel.org/r/20260225-pagevec_cleanup-v2-0-716868cc2d11@columbia.edu
Link: https://lkml.kernel.org/r/20260225-pagevec_cleanup-v2-1-716868cc2d11@columbia.edu
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Acked-by: Chris Li <chrisl@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Tal Zussman and committed by
Andrew Morton
cbf56f99 019fc368

+1 -6
-1
fs/afs/internal.h
··· 31 31 32 32 #define AFS_CELL_MAX_ADDRS 15 33 33 34 - struct pagevec; 35 34 struct afs_call; 36 35 struct afs_vnode; 37 36 struct afs_server_probe;
-2
fs/f2fs/f2fs.h
··· 28 28 #include <linux/fscrypt.h> 29 29 #include <linux/fsverity.h> 30 30 31 - struct pagevec; 32 - 33 31 #ifdef CONFIG_F2FS_CHECK_FS 34 32 #define f2fs_bug_on(sbi, condition) BUG_ON(condition) 35 33 #else
+1 -1
include/linux/pagevec.h
··· 93 93 return fbatch->folios[fbatch->i++]; 94 94 } 95 95 96 - void __folio_batch_release(struct folio_batch *pvec); 96 + void __folio_batch_release(struct folio_batch *fbatch); 97 97 98 98 static inline void folio_batch_release(struct folio_batch *fbatch) 99 99 {
-2
include/linux/swap.h
··· 20 20 21 21 struct bio; 22 22 23 - struct pagevec; 24 - 25 23 #define SWAP_FLAG_PREFER 0x8000 /* set if swap priority specified */ 26 24 #define SWAP_FLAG_PRIO_MASK 0x7fff 27 25 #define SWAP_FLAG_DISCARD 0x10000 /* enable discard for swap */