Skip to content

Commit

Permalink
nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vyacheslav Dubeyko authored and Linus Torvalds committed May 1, 2013
1 parent 8c26c4e commit dc33f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nilfs2/page.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
Expand Down

0 comments on commit dc33f5f

Please sign in to comment.