staging/lustre/llite: fix a flag bug of vvp_io_kernel_fault()
authorLi Xi <lixi@ddn.com>
Mon, 23 Jun 2014 01:32:21 +0000 (21:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:45:06 +0000 (20:45 -0400)
After vvp_io_kernel_fault() locked the page, it should set
VM_FAULT_LOCKED.

Signed-off-by: Li Xi <lixi@ddn.com>
Reviewed-on: http://review.whamcloud.com/10740
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/vvp_io.c

index 04230edc17787eff445b5dacc7da8ad3f8b6bf9a..2539a89e425590afaa56c5c91801584da0741ca0 100644 (file)
@@ -624,7 +624,7 @@ static int vvp_io_kernel_fault(struct vvp_fault_io *cfio)
                       page_private(vmf->page), vmf->virtual_address);
                if (unlikely(!(cfio->fault.ft_flags & VM_FAULT_LOCKED))) {
                        lock_page(vmf->page);
-                       cfio->fault.ft_flags &= VM_FAULT_LOCKED;
+                       cfio->fault.ft_flags |= VM_FAULT_LOCKED;
                }
 
                cfio->ft_vmpage = vmf->page;