Skip to content

Commit 894878f

Browse files
akpm00sfrothwell
authored andcommitted
mm-use-the-light-version-__mod_zone_page_state-in-mlocked_vma_newpage-checkpatch-fixes
WARNING: line over 80 characters torvalds#39: FILE: mm/internal.h:207: + * pte lock is held(spinlock), which implies preemption disabled. WARNING: line over 80 characters torvalds#55: FILE: mm/rmap.c:988: + * pte lock(a spinlock) is held, which implies preemption disabled. total: 0 errors, 2 warnings, 44 lines checked ./patches/mm-use-the-light-version-__mod_zone_page_state-in-mlocked_vma_newpage.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Jianyu Zhan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent e891e85 commit 894878f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: mm/internal.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ static inline int mlocked_vma_newpage(struct vm_area_struct *vma,
202202

203203
if (!TestSetPageMlocked(page)) {
204204
/*
205-
* We use the irq-unsafe __mod_zone_page_stat because
206-
* this counter is not modified from interrupt context, and the
207-
* pte lock is held(spinlock), which implies preemption disabled.
205+
* We use the irq-unsafe __mod_zone_page_stat because this
206+
* counter is not modified from interrupt context, and the pte
207+
* lock is held(spinlock), which implies preemption disabled.
208208
*/
209209
__mod_zone_page_state(page_zone(page), NR_MLOCK,
210210
hpage_nr_pages(page));

Diff for: mm/rmap.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,8 @@ void do_page_add_anon_rmap(struct page *page,
985985
/*
986986
* We use the irq-unsafe __{inc|mod}_zone_page_stat because
987987
* these counters are not modified from interrupt context, and
988-
* pte lock(a spinlock) is held, which implies preemption disabled.
988+
* pte lock(a spinlock) is held, which implies preemption
989+
* disabled.
989990
*/
990991
if (PageTransHuge(page))
991992
__inc_zone_page_state(page,

0 commit comments

Comments
 (0)