Lines Matching defs:fbatch
37 * @fbatch: The folio batch.
41 static inline void folio_batch_init(struct folio_batch *fbatch)
43 fbatch->nr = 0;
44 fbatch->i = 0;
45 fbatch->percpu_pvec_drained = false;
48 static inline void folio_batch_reinit(struct folio_batch *fbatch)
50 fbatch->nr = 0;
51 fbatch->i = 0;
54 static inline unsigned int folio_batch_count(struct folio_batch *fbatch)
56 return fbatch->nr;
59 static inline unsigned int folio_batch_space(struct folio_batch *fbatch)
61 return PAGEVEC_SIZE - fbatch->nr;
66 * @fbatch: The folio batch.
74 static inline unsigned folio_batch_add(struct folio_batch *fbatch,
77 fbatch->folios[fbatch->nr++] = folio;
78 return folio_batch_space(fbatch);
83 * @fbatch: The folio batch being processed.
89 static inline struct folio *folio_batch_next(struct folio_batch *fbatch)
91 if (fbatch->i == fbatch->nr)
93 return fbatch->folios[fbatch->i++];
98 static inline void folio_batch_release(struct folio_batch *fbatch)
100 if (folio_batch_count(fbatch))
101 __folio_batch_release(fbatch);
104 void folio_batch_remove_exceptionals(struct folio_batch *fbatch);