]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Fix reiserfs after "test_clear_page_dirty()" removal
authorLinus Torvalds <torvalds@woody.osdl.org>
Sat, 23 Dec 2006 17:32:45 +0000 (09:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 23 Dec 2006 17:32:45 +0000 (09:32 -0800)
Thanks to Len Brown for testing this fix, since while they have in the
past, none of my machines run reiserfs at the moment.

Cc: Vladimir V. Saveliev <vs@namesys.com>
Acked-by: Len Brown <lenb@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/stree.c

index 47e7027ea39f5183f0aadeb8148b41179fe3ee27..afb21ea45302a728936a27dc1b568e9eb04c1186 100644 (file)
@@ -1459,7 +1459,7 @@ static void unmap_buffers(struct page *page, loff_t pos)
                                bh = next;
                        } while (bh != head);
                        if (PAGE_SIZE == bh->b_size) {
-                               clear_page_dirty(page);
+                               cancel_dirty_page(page, PAGE_CACHE_SIZE);
                        }
                }
        }