X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_refcount_item.c;h=96fe209b5eb61fb5b45fcc46f6733c6b46f29308;hb=8ee74a91ac304ad2e9e794eb96ed76f0634dec40;hp=6e4c7446c3d4561f85d86686d5b4a40bc4cd0ce6;hpb=258ced9d083f364572a4ecfdb6cdd188eff883af;p=karo-tx-linux.git diff --git a/fs/xfs/xfs_refcount_item.c b/fs/xfs/xfs_refcount_item.c index 6e4c7446c3d4..96fe209b5eb6 100644 --- a/fs/xfs/xfs_refcount_item.c +++ b/fs/xfs/xfs_refcount_item.c @@ -221,6 +221,7 @@ void xfs_cui_release( struct xfs_cui_log_item *cuip) { + ASSERT(atomic_read(&cuip->cui_refcount) > 0); if (atomic_dec_and_test(&cuip->cui_refcount)) { xfs_trans_ail_remove(&cuip->cui_item, SHUTDOWN_LOG_IO_ERROR); xfs_cui_item_free(cuip);