]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-swap-remember-pg_anon_exclusive-via-a-swp-pte-bit-fix
authorDavid Hildenbrand <david@redhat.com>
Thu, 14 Apr 2022 06:07:00 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:00 +0000 (23:07 -0700)
Link: https://lkml.kernel.org/r/ac725bcb-313a-4fff-250a-68ba9a8f85fb@redhat.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c

index 3ad39bd66203477c0a9ca8f6a401596bc8b330e1..6ad9d84dada09300f0852307dbe0b65668db8248 100644 (file)
@@ -3747,7 +3747,7 @@ vm_fault_t do_swap_page(struct vm_fault *vmf)
                         */
                        exclusive = true;
                } else if (exclusive && PageWriteback(page) &&
-                          !(swp_swap_info(entry)->flags & SWP_STABLE_WRITES)) {
+                         (swp_swap_info(entry)->flags & SWP_STABLE_WRITES)) {
                        /*
                         * This is tricky: not all swap backends support
                         * concurrent page modifications while under writeback.