mirror of
https://github.com/hardkernel/linux.git
synced 2026-05-31 16:26:41 +09:00
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 <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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
09516500cb
commit
733bd244ab
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user