]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-add-comment-for-__mod_zone_page_stat-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2014 00:43:15 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:15 +0000 (10:43 +1000)
also fix spellos

WARNING: line over 80 characters
#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 <hughd@google.com>
Cc: Jianyu Zhan <nasa4836@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/internal.h
mm/rmap.c

index 83c65f28cf6c841f9f229c1672d5040ccd5a1d9d..e067984bafa07c4ab34ef32419406c92e95a4902 100644 (file)
@@ -202,9 +202,9 @@ static inline int mlocked_vma_newpage(struct vm_area_struct *vma,
 
        if (!TestSetPageMlocked(page)) {
                /*
-                * We use the irq-unsafe __mod_zone_page_stat because
-                * this counter is not modified from interrupt context, and the
-                * pte lock is held(spinlock), which implies preemtion disabled.
+                * We use the irq-unsafe __mod_zone_page_stat because this
+                * counter is not modified from interrupt context, and the pte
+                * lock is held(spinlock), which implies preemption disabled.
                 */
                __mod_zone_page_state(page_zone(page), NR_MLOCK,
                                    hpage_nr_pages(page));
index 3d678aa4a2df9e43f57bc1a91ef3ae7554077b9e..fdaafd0726b83f8b9f61d0b6060fe4679fc5a632 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -985,7 +985,8 @@ void do_page_add_anon_rmap(struct page *page,
                /*
                 * We use the irq-unsafe __{inc|mod}_zone_page_stat because
                 * these counters are not modified in interrupt context, and
-                * pte lock(a spinlock) is held, which implies preemtion disabled.
+                * pte lock(a spinlock) is held, which implies preemption
+                * disabled.
                 */
                if (PageTransHuge(page))
                        __inc_zone_page_state(page,
@@ -1082,7 +1083,7 @@ void page_remove_rmap(struct page *page)
         * We use the irq-unsafe __{inc|mod}_zone_page_stat because
         * these counters are not modified in interrupt context, and
         * these counters are not modified in interrupt context, and
-        * pte lock(a spinlock) is held, which implies preemtion disabled.
+        * pte lock(a spinlock) is held, which implies preemption disabled.
         */
        if (unlikely(PageHuge(page)))
                goto out;