]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] VM: Fix the gfp_mask in invalidate_complete_page2
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Oct 2006 08:21:58 +0000 (01:21 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 11 Oct 2006 18:14:22 +0000 (11:14 -0700)
commit887ed2f3aecde2ff24e06666932dc5f144745044
tree870280190c3825122dc8e30e7c2be66465b9f9f2
parentcd0810410beb86c570aeb3dcd3dc1fc5ab9e6077
[PATCH] VM: Fix the gfp_mask in invalidate_complete_page2

If try_to_release_page() is called with a zero gfp mask, then the
filesystem is effectively denied the possibility of sleeping while
attempting to release the page.  There doesn't appear to be any valid
reason why this should be banned, given that we're not calling this from a
memory allocation context.

For this reason, change the gfp_mask argument of the call to GFP_KERNEL.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Steve Dickson <SteveD@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/truncate.c