summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorGavin Shan2012-05-30 00:06:46 +0200
committerLinus Torvalds2012-05-30 01:22:24 +0200
commit5c2b8a162b5f8616f709bf20d5ec88f709485522 (patch)
treea07e74eb0f8da552fc9ff0acd1b38817c952ba4c /mm/hugetlb.c
parentmm: consider all swapped back pages in used-once logic (diff)
downloadkernel-qcow2-linux-5c2b8a162b5f8616f709bf20d5ec88f709485522.tar.gz
kernel-qcow2-linux-5c2b8a162b5f8616f709bf20d5ec88f709485522.tar.xz
kernel-qcow2-linux-5c2b8a162b5f8616f709bf20d5ec88f709485522.zip
mm/bootmem.c: cleanup on addition to bootmem data list
The objects of "struct bootmem_data_t" are linked together to form double-linked list sequentially based on its minimal page frame number. The current implementation implicitly supports the following cases, which means the inserting point for current bootmem data depends on how "list_for_each" works. That makes the code a little hard to read. Besides, "list_for_each" and "list_entry" can be replaced with "list_for_each_entry". - The linked list is empty. - There has no entry in the linked list, whose minimal page frame number is bigger than current one. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions