nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page()
authorVyacheslav Dubeyko <[email protected]>
Tue, 30 Apr 2013 22:27:50 +0000 (15:27 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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__,