]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/swap_state.c
sparc/sparc64: allocate sys_membarrier system call number
[karo-tx-linux.git] / mm / swap_state.c
index d783872d746caa810bf4bb68e94b7086dcff26ee..676ff2991380120275ba5d81d9660592bdc15b75 100644 (file)
@@ -185,13 +185,12 @@ int add_to_swap(struct page *page, struct list_head *list)
         * deadlock in the swap out path.
         */
        /*
-        * Add it to the swap cache and mark it dirty
+        * Add it to the swap cache.
         */
        err = add_to_swap_cache(page, entry,
                        __GFP_HIGH|__GFP_NOMEMALLOC|__GFP_NOWARN);
 
-       if (!err) {     /* Success */
-               SetPageDirty(page);
+       if (!err) {
                return 1;
        } else {        /* -ENOMEM radix-tree allocation failure */
                /*