Lines Matching refs:fbatch
100 static inline void folio_batch_init(struct folio_batch *fbatch) in folio_batch_init() argument
102 fbatch->nr = 0; in folio_batch_init()
103 fbatch->percpu_pvec_drained = false; in folio_batch_init()
106 static inline unsigned int folio_batch_count(struct folio_batch *fbatch) in folio_batch_count() argument
108 return fbatch->nr; in folio_batch_count()
111 static inline unsigned int fbatch_space(struct folio_batch *fbatch) in fbatch_space() argument
113 return PAGEVEC_SIZE - fbatch->nr; in fbatch_space()
126 static inline unsigned folio_batch_add(struct folio_batch *fbatch, in folio_batch_add() argument
129 fbatch->folios[fbatch->nr++] = folio; in folio_batch_add()
130 return fbatch_space(fbatch); in folio_batch_add()
133 static inline void folio_batch_release(struct folio_batch *fbatch) in folio_batch_release() argument
135 pagevec_release((struct pagevec *)fbatch); in folio_batch_release()
138 void folio_batch_remove_exceptionals(struct folio_batch *fbatch);