nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page()
authorVyacheslav Dubeyko <slava@dubeyko.com>
Tue, 30 Apr 2013 22:27:50 +0000 (15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:04 +0000 (17:04 -0700)
Change test_bit(PG_locked, &page->flags) to PageLocked().

Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nilfs2/page.c

index 131a5841a0701bb7b61a2cb8dae853f7f4aea08f..0ba679866e504ec126720f3eb7b78e210703f538 100644 (file)
@@ -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__,