xref: /freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/page_compat.h (revision b1c1ee4429fcca8f69873a8be66184e68e1b19d7)
1 #ifndef	_ZFS_PAGE_COMPAT_H
2 #define	_ZFS_PAGE_COMPAT_H
3 
4 /*
5  * Create our own accessor functions to follow the Linux API changes
6  */
7 #define	nr_file_pages() (global_node_page_state(NR_ACTIVE_FILE) + \
8 			global_node_page_state(NR_INACTIVE_FILE))
9 #define	nr_inactive_file_pages() global_node_page_state(NR_INACTIVE_FILE)
10 
11 #endif /* _ZFS_PAGE_COMPAT_H */
12