]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
swap-discard-while-swapping-only-if-swap_flag_discard_pages-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 7 Jun 2013 00:07:57 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:16 +0000 (15:42 +1000)
tweak comments

Cc: Hugh Dickins <hughd@google.com>
Cc: Rafael Aquini <aquini@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c

index 2fec360705e2ccfe88eb327d3a7082b1a563396d..36af6eeaa67eaa0532442706e668e9a268596c90 100644 (file)
@@ -2140,17 +2140,17 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
 
                if ((swap_flags & SWAP_FLAG_DISCARD) && swap_discardable(p)) {
                        /*
-                        * When discard is enabled for swap, with no particular
-                        * policy flagged, we set all swap discard flags here
-                        * in order to sustain backward compatibility with
-                        * older swapon(8) releases.
+                        * When discard is enabled for swap with no particular
+                        * policy flagged, we set all swap discard flags here in
+                        * order to sustain backward compatibility with older
+                        * swapon(8) releases.
                         */
                        p->flags |= (SWP_DISCARDABLE | SWP_AREA_DISCARD |
                                     SWP_PAGE_DISCARD);
 
                        /*
                         * By flagging sys_swapon, a sysadmin can tell us to
-                        * either do sinle-time area discards only, or to just
+                        * either do single-time area discards only, or to just
                         * perform discards for released swap page-clusters.
                         * Now it's time to adjust the p->flags accordingly.
                         */