Skip to content

Commit 5d57eea

Browse files
akpm00sfrothwell
authored andcommitted
mm-add-comment-for-__mod_zone_page_stat-checkpatch-fixes
also fix spellos WARNING: line over 80 characters torvalds#54: FILE: mm/rmap.c:988: + * pte lock(a spinlock) is held, which implies preemtion disabled. total: 0 errors, 1 warnings, 45 lines checked ./patches/mm-add-comment-for-__mod_zone_page_stat.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: Hugh Dickins <[email protected]> Cc: Jianyu Zhan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 33c91a1 commit 5d57eea

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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 preemtion 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));

mm/rmap.c

+3-2
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 in interrupt context, and
988-
* pte lock(a spinlock) is held, which implies preemtion disabled.
988+
* pte lock(a spinlock) is held, which implies preemption
989+
* disabled.
989990
*/
990991
if (PageTransHuge(page))
991992
__inc_zone_page_state(page,
@@ -1082,7 +1083,7 @@ void page_remove_rmap(struct page *page)
10821083
* We use the irq-unsafe __{inc|mod}_zone_page_stat because
10831084
* these counters are not modified in interrupt context, and
10841085
* these counters are not modified in interrupt context, and
1085-
* pte lock(a spinlock) is held, which implies preemtion disabled.
1086+
* pte lock(a spinlock) is held, which implies preemption disabled.
10861087
*/
10871088
if (unlikely(PageHuge(page)))
10881089
goto out;

0 commit comments

Comments
 (0)