浏览代码

mm: cleanup the comment for head/tail pages of compound pages in mm/page_alloc.c

Only tail pages point at the head page using their ->first_page fields.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Wang Sheng-Hui 13 年之前
父节点
当前提交
6416b9fa43
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mm/page_alloc.c

+ 2 - 2
mm/page_alloc.c

@@ -333,8 +333,8 @@ out:
  *
  *
  * The remaining PAGE_SIZE pages are called "tail pages".
  * The remaining PAGE_SIZE pages are called "tail pages".
  *
  *
- * All pages have PG_compound set.  All pages have their ->private pointing at
- * the head page (even the head page has this).
+ * All pages have PG_compound set.  All tail pages have their ->first_page
+ * pointing at the head page.
  *
  *
  * The first tail page's ->lru.next holds the address of the compound page's
  * The first tail page's ->lru.next holds the address of the compound page's
  * put_page() function.  Its ->lru.prev holds the order of allocation.
  * put_page() function.  Its ->lru.prev holds the order of allocation.