diff options
Diffstat (limited to 'drivers/video/fb_defio.c')
-rw-r--r-- | drivers/video/fb_defio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c index c27e153d8882..070f26f0bf99 100644 --- a/drivers/video/fb_defio.c +++ b/drivers/video/fb_defio.c | |||
@@ -107,6 +107,10 @@ static int fb_deferred_io_mkwrite(struct vm_area_struct *vma, | |||
107 | /* protect against the workqueue changing the page list */ | 107 | /* protect against the workqueue changing the page list */ |
108 | mutex_lock(&fbdefio->lock); | 108 | mutex_lock(&fbdefio->lock); |
109 | 109 | ||
110 | /* first write in this cycle, notify the driver */ | ||
111 | if (fbdefio->first_io && list_empty(&fbdefio->pagelist)) | ||
112 | fbdefio->first_io(info); | ||
113 | |||
110 | /* | 114 | /* |
111 | * We want the page to remain locked from ->page_mkwrite until | 115 | * We want the page to remain locked from ->page_mkwrite until |
112 | * the PTE is marked dirty to avoid page_mkclean() being called | 116 | * the PTE is marked dirty to avoid page_mkclean() being called |