Revert "perf vendor events intel: Add metrics for Icelake Server"
[linux-2.6-microblaze.git] / fs / inode.c
index 9e192be..c93500d 100644 (file)
@@ -529,7 +529,14 @@ void clear_inode(struct inode *inode)
         */
        xa_lock_irq(&inode->i_data.i_pages);
        BUG_ON(inode->i_data.nrpages);
-       BUG_ON(inode->i_data.nrexceptional);
+       /*
+        * Almost always, mapping_empty(&inode->i_data) here; but there are
+        * two known and long-standing ways in which nodes may get left behind
+        * (when deep radix-tree node allocation failed partway; or when THP
+        * collapse_file() failed). Until those two known cases are cleaned up,
+        * or a cleanup function is called here, do not BUG_ON(!mapping_empty),
+        * nor even WARN_ON(!mapping_empty).
+        */
        xa_unlock_irq(&inode->i_data.i_pages);
        BUG_ON(!list_empty(&inode->i_data.private_list));
        BUG_ON(!(inode->i_state & I_FREEING));