diff options
author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2013-05-01 00:27:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 02:04:04 +0200 |
commit | dc33f5f3c9988026aad5b788c761c8c1b363e919 (patch) | |
tree | 1fc5e76473ad36e01938d530d5c3cb7bb47e1890 /fs/nilfs2 | |
parent | nilfs2: fix issue with flush kernel thread after remount in RO mode because o... (diff) | |
download | linux-dc33f5f3c9988026aad5b788c761c8c1b363e919.tar.xz linux-dc33f5f3c9988026aad5b788c761c8c1b363e919.zip |
nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page()
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>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c index 131a5841a070..0ba679866e50 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__, |