提交 a7069ee3 编写于 作者: Y Yanfei Xu 提交者: Linus Torvalds

mm/memory.c: replace vmf->vma with variable vma

The code has declared a vma_struct named vma which is assigned a value of
vmf->vma.  Thus, use variable vma directly here.
Signed-off-by: NYanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: NMatthew Wilcox (Oracle) <willy@infradead.org>
Link: http://lkml.kernel.org/r/20200818084607.37616-1-yanfei.xu@windriver.comSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d383807a
...@@ -3597,7 +3597,7 @@ static vm_fault_t __do_fault(struct vm_fault *vmf) ...@@ -3597,7 +3597,7 @@ static vm_fault_t __do_fault(struct vm_fault *vmf)
* # flush A, B to clear the writeback * # flush A, B to clear the writeback
*/ */
if (pmd_none(*vmf->pmd) && !vmf->prealloc_pte) { if (pmd_none(*vmf->pmd) && !vmf->prealloc_pte) {
vmf->prealloc_pte = pte_alloc_one(vmf->vma->vm_mm); vmf->prealloc_pte = pte_alloc_one(vma->vm_mm);
if (!vmf->prealloc_pte) if (!vmf->prealloc_pte)
return VM_FAULT_OOM; return VM_FAULT_OOM;
smp_wmb(); /* See comment in __pte_alloc() */ smp_wmb(); /* See comment in __pte_alloc() */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册