Skip to content

Commit 2ebd52e

Browse files
akpm00hnaz
authored andcommitted
mm-respect-foll_force-foll_cow-for-thp-checkpatch-fixes
WARNING: please, no spaces at the start of a line torvalds#101: FILE: mm/huge_memory.c:1143: + return pmd_write(pmd) ||$ ERROR: code indent should use tabs where possible torvalds#102: FILE: mm/huge_memory.c:1144: + ((flags & FOLL_FORCE) && (flags & FOLL_COW) && pmd_dirty(pmd));$ WARNING: please, no spaces at the start of a line torvalds#102: FILE: mm/huge_memory.c:1144: + ((flags & FOLL_FORCE) && (flags & FOLL_COW) && pmd_dirty(pmd));$ total: 1 errors, 2 warnings, 36 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. NOTE: Whitespace errors detected. You may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/mm-respect-foll_force-foll_cow-for-thp.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: Keno Fischer <keno@juliacomputing.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 1e86ee5 commit 2ebd52e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/huge_memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,8 @@ int do_huge_pmd_wp_page(struct vm_fault *vmf, pmd_t orig_pmd)
11401140
*/
11411141
static inline bool can_follow_write_pmd(pmd_t pmd, unsigned int flags)
11421142
{
1143-
return pmd_write(pmd) ||
1144-
((flags & FOLL_FORCE) && (flags & FOLL_COW) && pmd_dirty(pmd));
1143+
return pmd_write(pmd) ||
1144+
((flags & FOLL_FORCE) && (flags & FOLL_COW) && pmd_dirty(pmd));
11451145
}
11461146

11471147
struct page *follow_trans_huge_pmd(struct vm_area_struct *vma,

0 commit comments

Comments
 (0)