fb_defio: redo fix for non-dirty ptes
authorAlbert Herranz <albert_herranz@yahoo.es>
Fri, 4 Jun 2010 21:14:57 +0000 (14:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jun 2010 22:21:45 +0000 (15:21 -0700)
commitd6d03f9158516b50d0d343158e3f33bcff1e4ca5
treeb853410433ef654e6a152804aa5dd2837cc0a2d7
parent3f505ca45735c35576dab4ceb3e3736d528b6672
fb_defio: redo fix for non-dirty ptes

As pointed by Nick Piggin, ->page_mkwrite provides a way to keep a page
locked until the associated PTE is marked dirty.

Re-implement the fix by using this mechanism.

Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/fb_defio.c