aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakpm@osdl.org <akpm@osdl.org>2005-04-16 18:24:06 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:24:06 -0400
commit323aca6c0bda611d0f31b3234d9fe291d31a9207 (patch)
treed1ece2a5bd91f56981f7773f264843828e9b71c6
parent79befd0c08c4766f8fa27e37ac2a70e40840a56a (diff)
[PATCH] vmscan: pageout(): remove unneeded test
) 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>
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 4003c0518d28..269eded9b459 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -318,7 +318,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping)
318 * Some data journaling orphaned pages can have 318 * Some data journaling orphaned pages can have
319 * page->mapping == NULL while being dirty with clean buffers. 319 * page->mapping == NULL while being dirty with clean buffers.
320 */ 320 */
321 if (PageDirty(page) && PagePrivate(page)) { 321 if (PagePrivate(page)) {
322 if (try_to_free_buffers(page)) { 322 if (try_to_free_buffers(page)) {
323 ClearPageDirty(page); 323 ClearPageDirty(page);
324 printk("%s: orphaned page\n", __FUNCTION__); 324 printk("%s: orphaned page\n", __FUNCTION__);