提交 dc33f5f3 编写于 作者: V Vyacheslav Dubeyko 提交者: Linus Torvalds

nilfs2: fix using of PageLocked() in nilfs_clear_dirty_page()

Change test_bit(PG_locked, &page->flags) to PageLocked().
Signed-off-by: NVyacheslav Dubeyko <slava@dubeyko.com>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8c26c4e2
...@@ -407,7 +407,7 @@ void nilfs_clear_dirty_page(struct page *page, bool silent) ...@@ -407,7 +407,7 @@ void nilfs_clear_dirty_page(struct page *page, bool silent)
struct inode *inode = page->mapping->host; struct inode *inode = page->mapping->host;
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
BUG_ON(!test_bit(PG_locked, &page->flags)); BUG_ON(!PageLocked(page));
if (!silent) { if (!silent) {
nilfs_warning(sb, __func__, nilfs_warning(sb, __func__,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册