xfs: attach inodes to the cluster buffer when dirtied
[linux-2.6-microblaze.git] / fs / xfs / xfs_buf_item.c
index ecb3362..e9428c3 100644 (file)
@@ -465,6 +465,7 @@ xfs_buf_item_unpin(
                if (bip->bli_flags & XFS_BLI_STALE_INODE) {
                        xfs_buf_item_done(bp);
                        xfs_iflush_done(bp);
+                       ASSERT(list_empty(&bp->b_li_list));
                } else {
                        xfs_trans_ail_delete(lip, SHUTDOWN_LOG_IO_ERROR);
                        xfs_buf_item_relse(bp);