diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-06-21 19:45:51 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-24 02:59:29 +0300 |
commit | ce06442812fc584337c5b23a43bd2be7d037041d (patch) | |
tree | 1d5ff61c5766d67c0b6fd086c5501a9900dd689a /include/linux/pagevec.h | |
parent | e0b72c14d8dcc9477e580c261041dae86d4906fe (diff) | |
download | linux-ce06442812fc584337c5b23a43bd2be7d037041d.tar.xz |
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>
Diffstat (limited to 'include/linux/pagevec.h')
-rw-r--r-- | include/linux/pagevec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 42aad53e382e..3a9d29dd28a3 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -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) |