mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-11 18:01:20 +03:00
![Rob Norris](/assets/img/avatar_default.png)
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
12 lines
374 B
C
12 lines
374 B
C
#ifndef _ZFS_PAGE_COMPAT_H
|
|
#define _ZFS_PAGE_COMPAT_H
|
|
|
|
/*
|
|
* Create our own accessor functions to follow the Linux API changes
|
|
*/
|
|
#define nr_file_pages() global_node_page_state(NR_FILE_PAGES)
|
|
#define nr_inactive_anon_pages() global_node_page_state(NR_INACTIVE_ANON)
|
|
#define nr_inactive_file_pages() global_node_page_state(NR_INACTIVE_FILE)
|
|
|
|
#endif /* _ZFS_PAGE_COMPAT_H */
|