tmpfs: restore missing clear_highpage
authorHugh Dickins <hugh@veritas.com>
Wed, 28 Nov 2007 18:55:10 +0000 (18:55 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 28 Nov 2007 19:04:28 +0000 (11:04 -0800)
commite84e2e132c9c66d8498e7710d4ea532d1feaaac5
treef754be23d6b37af04d203eb6e34ac7cdb5f84a4b
parent9bfb52ad716e74785b2402b7ea17f30e0344b8e8
tmpfs: restore missing clear_highpage

tmpfs was misconverted to __GFP_ZERO in 2.6.11.  There's an unusual case in
which shmem_getpage receives the page from its caller instead of allocating.
We must cover this case by clear_highpage before SetPageUptodate, as before.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c