aboutsummaryrefslogtreecommitdiff
path: root/fs/nilfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c
index 131a5841a07..0ba679866e5 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__,