mm/memory.c: Replace vmf->vma with variable vma
Subsystems (2)
PATCH 1/1 mm/memory.c: Replace vmf->vma with variable vma
From: Yanfei Xu <[email protected]>
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 Yanfei Xu <[email protected]>
--- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory.c +1 -1
@@ -3454,7 +3454,7 @@ static vm_fault_t __do_fault(struct vm_fault *vmf)* # flush A, B to clear the writeback */ 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)return VM_FAULT_OOM ;smp_wmb ();/* See comment in __pte_alloc() */
Signature · 1 line
2.18.2
Quoted 6 lines · On Tue, Aug 18, 2020 at 04:46:07PM +0800, [email protected] wrote:
From: Yanfei Xu <[email protected]>
The code has declared a
vma_structnamed vma which is assigned a value ofvmf->vma. Thus, use variable vma directly here.Signed-off-by Yanfei Xu <[email protected]>
Reviewed-by Matthew Wilcox (Oracle) <[email protected]>