]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
[PATCH] vmscan: pageout(): remove unneeded test
authorakpm@osdl.org <akpm@osdl.org>
Sat, 16 Apr 2005 22:24:06 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:24:06 +0000 (15:24 -0700)
\r)

We only call pageout() for dirty pages, so this test is redundant.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c

index 4003c0518d28ec7e74c4fa67cca270093c17f302..269eded9b459804a8f090ea8dad0b908a4afef0d 100644 (file)
@@ -318,7 +318,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping)
                 * Some data journaling orphaned pages can have
                 * page->mapping == NULL while being dirty with clean buffers.
                 */
-               if (PageDirty(page) && PagePrivate(page)) {
+               if (PagePrivate(page)) {
                        if (try_to_free_buffers(page)) {
                                ClearPageDirty(page);
                                printk("%s: orphaned page\n", __FUNCTION__);