提交 323aca6c 编写于 作者: A akpm@osdl.org 提交者: Linus Torvalds

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

)



We only call pageout() for dirty pages, so this test is redundant.
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 79befd0c
...@@ -318,7 +318,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping) ...@@ -318,7 +318,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping)
* Some data journaling orphaned pages can have * Some data journaling orphaned pages can have
* page->mapping == NULL while being dirty with clean buffers. * page->mapping == NULL while being dirty with clean buffers.
*/ */
if (PageDirty(page) && PagePrivate(page)) { if (PagePrivate(page)) {
if (try_to_free_buffers(page)) { if (try_to_free_buffers(page)) {
ClearPageDirty(page); ClearPageDirty(page);
printk("%s: orphaned page\n", __FUNCTION__); printk("%s: orphaned page\n", __FUNCTION__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册