From: Vyacheslav Dubeyko Date: Tue, 30 Apr 2013 22:27:50 +0000 (-0700) Subject: nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page() X-Git-Tag: v3.12-rc1~951^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc33f5f3c9988026aad5b788c761c8c1b363e919;p=kernel%2Fkernel-generic.git 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 --- diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c index 131a584..0ba6798 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__,