Skip to content

Commit

Permalink
mm: cleanup the comment for head/tail pages of compound pages in mm/p…
Browse files Browse the repository at this point in the history
…age_alloc.c

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

Signed-off-by: Wang Sheng-Hui <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
Wang Sheng-Hui authored and Jiri Kosina committed Nov 17, 2011
1 parent 7433f2b commit 6416b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ static void bad_page(struct page *page)
*
* 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
* put_page() function. Its ->lru.prev holds the order of allocation.
Expand Down

0 comments on commit 6416b9f

Please sign in to comment.