diff --git a/mm/page-writeback.c b/mm/page-writeback.c index ab5a3cee8ad3444c1f60fd6731b19302aed4065a..d9c42d38ee47965e1576ee5e6a4fd61cea7b76ca 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -2655,7 +2655,7 @@ int clear_page_dirty_for_io(struct page *page) struct address_space *mapping = page_mapping(page); int ret = 0; - BUG_ON(!PageLocked(page)); + VM_BUG_ON_PAGE(!PageLocked(page), page); if (mapping && mapping_cap_account_dirty(mapping)) { struct inode *inode = mapping->host;