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

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

