From dc33f5f3c9988026aad5b788c761c8c1b363e919 Mon Sep 17 00:00:00 2001 From: Vyacheslav Dubeyko Date: Tue, 30 Apr 2013 15:27:50 -0700 Subject: nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page() Change test_bit(PG_locked, &page->flags) to PageLocked(). Signed-off-by: Vyacheslav Dubeyko Cc: Ryusuke Konishi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/nilfs2/page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c index 131a5841a07..0ba679866e5 100644 --- a/fs/nilfs2/page.c +++ b/fs/nilfs2/page.c @@ -407,7 +407,7 @@ void nilfs_clear_dirty_page(struct page *page, bool silent) struct inode *inode = page->mapping->host; struct super_block *sb = inode->i_sb; - BUG_ON(!test_bit(PG_locked, &page->flags)); + BUG_ON(!PageLocked(page)); if (!silent) { nilfs_warning(sb, __func__, -- cgit v1.2.3-18-g5258