Skip to content

Commit

Permalink
mm-convert-remove_migration_pte-to-use-page_vma_mapped_walk-checkpatc…
Browse files Browse the repository at this point in the history
…h-fixes

WARNING: line over 80 characters
torvalds#98: FILE: mm/migrate.c:222:
+		/* Recheck VMA as permissions can change since migration started  */

total: 0 errors, 1 warnings, 127 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

./patches/mm-convert-remove_migration_pte-to-use-page_vma_mapped_walk.patch has style problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and sfrothwell committed Feb 9, 2017
1 parent 8c81852 commit 5b0b7e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ static int remove_migration_pte(struct page *page, struct vm_area_struct *vma,
if (pte_swp_soft_dirty(*pvmw.pte))
pte = pte_mksoft_dirty(pte);

/* Recheck VMA as permissions can change since migration started */
/*
* Recheck VMA as permissions can change since migration started
*/
entry = pte_to_swp_entry(*pvmw.pte);
if (is_write_migration_entry(entry))
pte = maybe_mkwrite(pte, vma);
Expand Down

0 comments on commit 5b0b7e4

Please sign in to comment.