drivers/misc/vmw_balloon.c: determine page allocation flag can_sleep outside loop
authorRakib Mullick <rakib.mullick@gmail.com>
Wed, 2 Nov 2011 20:40:04 +0000 (13:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Nov 2011 23:07:03 +0000 (16:07 -0700)
commit6d994a7e42ab219ba3c10d5ffccf20990252881e
treedc10f63454fa7baa3ac379e54550d44832ae7c0c
parent3fd306c85adcde7209281cb663dd8ea247e97cc3
drivers/misc/vmw_balloon.c: determine page allocation flag can_sleep outside loop

In vmballoon_reserve_page(), flags has been passed from the callee
function (vmballoon_inflate here).  So, we can determine can_sleep outside
the loop.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Acked-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/vmw_balloon.c