diff --git a/mm/truncate.c b/mm/truncate.c index 1d2fb2dca96f..71b65aab8077 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -520,9 +520,13 @@ void truncate_inode_pages_final(struct address_space *mapping) */ xa_lock_irq(&mapping->i_pages); xa_unlock_irq(&mapping->i_pages); - - truncate_inode_pages(mapping, 0); } + + /* + * Cleancache needs notification even if there are no pages or shadow + * entries. + */ + truncate_inode_pages(mapping, 0); } EXPORT_SYMBOL(truncate_inode_pages_final);