Merge d652502ef4 Merge tag 'ovl-update-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs into android-mainline
A tiny step en route to v5.13-rc1 Signed-off-by: Lee Jones <lee.jones@linaro.org> Change-Id: I049e80976042ebffc90bb080f09da0afcfd48d77
This commit is contained in:
@@ -991,7 +991,8 @@ static inline int is_highmem_idx(enum zone_type idx)
|
||||
* is_highmem - helper function to quickly check if a struct zone is a
|
||||
* highmem zone or not. This is an attempt to keep references
|
||||
* to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum.
|
||||
* @zone - pointer to struct zone variable
|
||||
* @zone: pointer to struct zone variable
|
||||
* Return: 1 for a highmem zone, 0 otherwise
|
||||
*/
|
||||
static inline int is_highmem(struct zone *zone)
|
||||
{
|
||||
@@ -1042,7 +1043,7 @@ extern struct zone *next_zone(struct zone *zone);
|
||||
|
||||
/**
|
||||
* for_each_online_pgdat - helper macro to iterate over all online nodes
|
||||
* @pgdat - pointer to a pg_data_t variable
|
||||
* @pgdat: pointer to a pg_data_t variable
|
||||
*/
|
||||
#define for_each_online_pgdat(pgdat) \
|
||||
for (pgdat = first_online_pgdat(); \
|
||||
@@ -1050,7 +1051,7 @@ extern struct zone *next_zone(struct zone *zone);
|
||||
pgdat = next_online_pgdat(pgdat))
|
||||
/**
|
||||
* for_each_zone - helper macro to iterate over all memory zones
|
||||
* @zone - pointer to struct zone variable
|
||||
* @zone: pointer to struct zone variable
|
||||
*
|
||||
* The user only needs to declare the zone variable, for_each_zone
|
||||
* fills it in.
|
||||
@@ -1089,15 +1090,18 @@ struct zoneref *__next_zones_zonelist(struct zoneref *z,
|
||||
|
||||
/**
|
||||
* next_zones_zonelist - Returns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point
|
||||
* @z - The cursor used as a starting point for the search
|
||||
* @highest_zoneidx - The zone index of the highest zone to return
|
||||
* @nodes - An optional nodemask to filter the zonelist with
|
||||
* @z: The cursor used as a starting point for the search
|
||||
* @highest_zoneidx: The zone index of the highest zone to return
|
||||
* @nodes: An optional nodemask to filter the zonelist with
|
||||
*
|
||||
* This function returns the next zone at or below a given zone index that is
|
||||
* within the allowed nodemask using a cursor as the starting point for the
|
||||
* search. The zoneref returned is a cursor that represents the current zone
|
||||
* being examined. It should be advanced by one before calling
|
||||
* next_zones_zonelist again.
|
||||
*
|
||||
* Return: the next zone at or below highest_zoneidx within the allowed
|
||||
* nodemask using a cursor within a zonelist as a starting point
|
||||
*/
|
||||
static __always_inline struct zoneref *next_zones_zonelist(struct zoneref *z,
|
||||
enum zone_type highest_zoneidx,
|
||||
@@ -1110,10 +1114,9 @@ static __always_inline struct zoneref *next_zones_zonelist(struct zoneref *z,
|
||||
|
||||
/**
|
||||
* first_zones_zonelist - Returns the first zone at or below highest_zoneidx within the allowed nodemask in a zonelist
|
||||
* @zonelist - The zonelist to search for a suitable zone
|
||||
* @highest_zoneidx - The zone index of the highest zone to return
|
||||
* @nodes - An optional nodemask to filter the zonelist with
|
||||
* @return - Zoneref pointer for the first suitable zone found (see below)
|
||||
* @zonelist: The zonelist to search for a suitable zone
|
||||
* @highest_zoneidx: The zone index of the highest zone to return
|
||||
* @nodes: An optional nodemask to filter the zonelist with
|
||||
*
|
||||
* This function returns the first zone at or below a given zone index that is
|
||||
* within the allowed nodemask. The zoneref returned is a cursor that can be
|
||||
@@ -1123,6 +1126,8 @@ static __always_inline struct zoneref *next_zones_zonelist(struct zoneref *z,
|
||||
* When no eligible zone is found, zoneref->zone is NULL (zoneref itself is
|
||||
* never NULL). This may happen either genuinely, or due to concurrent nodemask
|
||||
* update due to cpuset modification.
|
||||
*
|
||||
* Return: Zoneref pointer for the first suitable zone found
|
||||
*/
|
||||
static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist,
|
||||
enum zone_type highest_zoneidx,
|
||||
@@ -1134,11 +1139,11 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist,
|
||||
|
||||
/**
|
||||
* for_each_zone_zonelist_nodemask - helper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask
|
||||
* @zone - The current zone in the iterator
|
||||
* @z - The current pointer within zonelist->_zonerefs being iterated
|
||||
* @zlist - The zonelist being iterated
|
||||
* @highidx - The zone index of the highest zone to return
|
||||
* @nodemask - Nodemask allowed by the allocator
|
||||
* @zone: The current zone in the iterator
|
||||
* @z: The current pointer within zonelist->_zonerefs being iterated
|
||||
* @zlist: The zonelist being iterated
|
||||
* @highidx: The zone index of the highest zone to return
|
||||
* @nodemask: Nodemask allowed by the allocator
|
||||
*
|
||||
* This iterator iterates though all zones at or below a given zone index and
|
||||
* within a given nodemask
|
||||
@@ -1158,10 +1163,10 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist,
|
||||
|
||||
/**
|
||||
* for_each_zone_zonelist - helper macro to iterate over valid zones in a zonelist at or below a given zone index
|
||||
* @zone - The current zone in the iterator
|
||||
* @z - The current pointer within zonelist->zones being iterated
|
||||
* @zlist - The zonelist being iterated
|
||||
* @highidx - The zone index of the highest zone to return
|
||||
* @zone: The current zone in the iterator
|
||||
* @z: The current pointer within zonelist->zones being iterated
|
||||
* @zlist: The zonelist being iterated
|
||||
* @highidx: The zone index of the highest zone to return
|
||||
*
|
||||
* This iterator iterates though all zones at or below a given zone index.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user