From: Li Xi Date: Mon, 23 Jun 2014 01:32:21 +0000 (-0400) Subject: staging/lustre/llite: fix a flag bug of vvp_io_kernel_fault() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=733bd244ab1d03db5416b968500092977690a0be;p=openwrt%2Fstaging%2Fblogic.git staging/lustre/llite: fix a flag bug of vvp_io_kernel_fault() After vvp_io_kernel_fault() locked the page, it should set VM_FAULT_LOCKED. Signed-off-by: Li Xi Reviewed-on: http://review.whamcloud.com/10740 Reviewed-by: Jinshan Xiong Reviewed-by: Emoly Liu Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/vvp_io.c b/drivers/staging/lustre/lustre/llite/vvp_io.c index 04230edc1778..2539a89e4255 100644 --- a/drivers/staging/lustre/lustre/llite/vvp_io.c +++ b/drivers/staging/lustre/lustre/llite/vvp_io.c @@ -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;