/* SPDX-License-Identifier: GPL-2.0 */
/*
 * include/linux/pagevec.h
 *
 * In many places it is efficient to batch an operation up against multiple
 * folios.  A folio_batch is a container which is used for that.
 */

/* Extracted unchanged from Linux v6.18, include/linux/pagevec.h:28-33.
 * Complete struct definition; surrounding kernel context is required.
 * Source: https://github.com/torvalds/linux/blob/v6.18/include/linux/pagevec.h#L28
 * License text: GPL-2.0.txt (in this directory).
 */
struct folio_batch {
	unsigned char nr;
	unsigned char i;
	bool percpu_pvec_drained;
	struct folio *folios[PAGEVEC_SIZE];
};

