diff options
author | Oscar Salvador <osalvador@suse.de> | 2018-08-22 06:53:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-22 19:52:45 +0200 |
commit | 89696701ea847786f88ccc1c580fb4c3c20c4a3a (patch) | |
tree | 7a0c00d935b21956cfd4d2319e0389177ee8dd8c /mm | |
parent | Documentation/sysctl/vm.txt: update __vm_enough_memory()'s path (diff) | |
download | linux-89696701ea847786f88ccc1c580fb4c3c20c4a3a.tar.xz linux-89696701ea847786f88ccc1c580fb4c3c20c4a3a.zip |
mm: remove zone_id() and make use of zone_idx() in is_dev_zone()
is_dev_zone() is using zone_id() to check if the zone is ZONE_DEVICE.
zone_id() looks pretty much the same as zone_idx(), and while the use of
zone_idx() is quite spread in the kernel, zone_id() is only being used by
is_dev_zone().
This patch removes zone_id() and makes is_dev_zone() use zone_idx() to
check the zone, so we do not have two things with the same functionality
around.
Link: http://lkml.kernel.org/r/20180730133718.28683-1-osalvador@techadventures.net
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Cc: Pasha Tatashin <Pavel.Tatashin@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions