xref: /freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/page_compat.h (revision 7a7741af18d6c8a804cc643cb7ecda9d730c6aa6)
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_FILE_PAGES)
8 #define	nr_inactive_anon_pages() global_node_page_state(NR_INACTIVE_ANON)
9 #define	nr_inactive_file_pages() global_node_page_state(NR_INACTIVE_FILE)
10 
11 #endif /* _ZFS_PAGE_COMPAT_H */
12