Commit 323aca6c authored by akpm@osdl.org's avatar akpm@osdl.org Committed by Linus Torvalds

[PATCH] vmscan: pageout(): remove unneeded test

)



We only call pageout() for dirty pages, so this test is redundant.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 79befd0c
......@@ -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__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment