-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: remove ZFS_GLOBAL_ZONE_PAGE_STATE and ZFS_ENUM_* generation
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
- Loading branch information
1 parent
8d9cb04
commit ec48dd0
Showing
7 changed files
with
0 additions
and
157 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
usr/bin/arc_summary.py | ||
usr/share/zfs/enum-extract.pl | ||
usr/share/zfs/zfs-helpers.sh | ||
etc/default/zfs | ||
etc/init.d | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,11 @@ | ||
#ifndef _ZFS_PAGE_COMPAT_H | ||
#define _ZFS_PAGE_COMPAT_H | ||
|
||
/* | ||
* We have various enum members moving between two separate enum types, | ||
* and accessed by different functions at various times. Centralise the | ||
* insanity. | ||
* | ||
* < v4.8: all enums in zone_stat_item, via global_page_state() | ||
* v4.8: some enums moved to node_stat_item, global_node_page_state() introduced | ||
* v4.13: some enums moved from zone_stat_item to node_state_item | ||
* v4.14: global_page_state() rename to global_zone_page_state() | ||
* | ||
* The defines used here are created by config/kernel-global_page_state.m4 | ||
*/ | ||
|
||
/* | ||
* Create our own accessor functions to follow the Linux API changes | ||
*/ | ||
|
||
#if defined(ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES) | ||
#define nr_file_pages() global_node_page_state(NR_FILE_PAGES) | ||
#else | ||
#define nr_file_pages() global_zone_page_state(NR_FILE_PAGES) | ||
#endif | ||
#if defined(ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON) | ||
#define nr_inactive_anon_pages() global_node_page_state(NR_INACTIVE_ANON) | ||
#else | ||
#define nr_inactive_anon_pages() global_zone_page_state(NR_INACTIVE_ANON) | ||
#endif | ||
#if defined(ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE) | ||
#define nr_inactive_file_pages() global_node_page_state(NR_INACTIVE_FILE) | ||
#else | ||
#define nr_inactive_file_pages() global_zone_page_state(NR_INACTIVE_FILE) | ||
#endif | ||
|
||
#endif /* _ZFS_PAGE_COMPAT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.