From: akpm@osdl.org Date: Sat, 16 Apr 2005 22:24:06 +0000 (-0700) Subject: [PATCH] vmscan: pageout(): remove unneeded test X-Git-Tag: v2.6.12-rc3~228 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=323aca6c0bda611d0f31b3234d9fe291d31a9207;p=linux-2.6 [PATCH] vmscan: pageout(): remove unneeded test ) We only call pageout() for dirty pages, so this test is redundant. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 4003c0518d..269eded9b4 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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__);