/* SPDX-License-Identifier: GPL-2.0 */

/* Extracted unchanged from Linux v6.0, include/linux/swap.h:388-391.
 * Complete function definition; surrounding kernel context is required.
 * Source: https://github.com/torvalds/linux/blob/v6.0/include/linux/swap.h#L388
 * License text: GPL-2.0.txt (in this directory).
 */
static inline bool lru_cache_disabled(void)
{
	return atomic_read(&lru_disable_count);
}

