mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
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>
This commit is contained in:
parent
e0b72c14d8
commit
ce06442812
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ static inline unsigned int folio_batch_count(struct folio_batch *fbatch)
|
|||
return fbatch->nr;
|
||||
}
|
||||
|
||||
static inline unsigned int fbatch_space(struct folio_batch *fbatch)
|
||||
static inline unsigned int folio_batch_space(struct folio_batch *fbatch)
|
||||
{
|
||||
return PAGEVEC_SIZE - fbatch->nr;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ static inline unsigned folio_batch_add(struct folio_batch *fbatch,
|
|||
struct folio *folio)
|
||||
{
|
||||
fbatch->folios[fbatch->nr++] = folio;
|
||||
return fbatch_space(fbatch);
|
||||
return folio_batch_space(fbatch);
|
||||
}
|
||||
|
||||
static inline void __folio_batch_release(struct folio_batch *fbatch)
|
||||
|
|
Loading…
Reference in a new issue