Skip to content

Commit ce06442

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
pagevec: rename fbatch_count()
This should always have been called folio_batch_count(). Link: https://lkml.kernel.org/r/20230621164557.3510324-8-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent e0b72c1 commit ce06442

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/pagevec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static inline unsigned int folio_batch_count(struct folio_batch *fbatch)
105105
return fbatch->nr;
106106
}
107107

108-
static inline unsigned int fbatch_space(struct folio_batch *fbatch)
108+
static inline unsigned int folio_batch_space(struct folio_batch *fbatch)
109109
{
110110
return PAGEVEC_SIZE - fbatch->nr;
111111
}
@@ -124,7 +124,7 @@ static inline unsigned folio_batch_add(struct folio_batch *fbatch,
124124
struct folio *folio)
125125
{
126126
fbatch->folios[fbatch->nr++] = folio;
127-
return fbatch_space(fbatch);
127+
return folio_batch_space(fbatch);
128128
}
129129

130130
static inline void __folio_batch_release(struct folio_batch *fbatch)

0 commit comments

Comments
 (0)