X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Frmap.c;h=dbc2ca2057a54ff2c4a709de4b6e9a01694241bb;hb=cf03613e9662c28372b8c83538fb402df37c53f5;hp=dc3be5f5b0dafd029860d7303d7e6e471a678597;hpb=d89a9bda14204547f966ed1510a269a44c0b7f5d;p=linux-2.6 diff --git a/mm/rmap.c b/mm/rmap.c index dc3be5f5b0..dbc2ca2057 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -471,11 +471,12 @@ int page_mkclean(struct page *page) if (page_mapped(page)) { struct address_space *mapping = page_mapping(page); - if (mapping) + if (mapping) { ret = page_mkclean_file(mapping, page); - if (page_test_dirty(page)) { - page_clear_dirty(page); - ret = 1; + if (page_test_dirty(page)) { + page_clear_dirty(page); + ret = 1; + } } }