]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-shmem-fix-race-in-shmem_undo_range-w-thp-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 7 Jun 2023 18:58:24 +0000 (11:58 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:01 +0000 (13:16 -0800)
tidy up comment layout

Cc: David Stevens <stevensd@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c

index a77cdebf1206197c20dfe5a415808da562897473..0d1ce70bce38028970802375b2409e9e6400364f 100644 (file)
@@ -1085,10 +1085,12 @@ whole_folios:
                                        truncate_inode_folio(mapping, folio);
                                } else if (truncate_inode_partial_folio(folio, lstart, lend)) {
                                        /*
-                                        * If we split a page, reset the loop so that we
-                                        * pick up the new sub pages. Otherwise the THP
-                                        * was entirely dropped or the target range was
-                                        * zeroed, so just continue the loop as is.
+                                        * If we split a page, reset the loop so
+                                        * that we pick up the new sub pages.
+                                        * Otherwise the THP was entirely
+                                        * dropped or the target range was
+                                        * zeroed, so just continue the loop as
+                                        * is.
                                         */
                                        if (!folio_test_large(folio)) {
                                                folio_unlock(folio);