Re: [RFC PATCH v5 2/5] Btrfs: improve the delayed refs process in rm case

2013-07-31 Thread Stefan Behrens
On Wed, 31 Jul 2013 23:37:42 +0800, Liu Bo wrote: > + WARN_ON(update->ref_mod > 0 && update->ref_mod != 1); WARN_ON(update->ref_mod > 1) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http

[RFC PATCH v5 2/5] Btrfs: improve the delayed refs process in rm case

2013-07-31 Thread Liu Bo
While removing a file with dedup extents, we could have a great number of delayed refs pending to process, and these refs refer to droping a ref of the extent, which is of BTRFS_DROP_DELAYED_REF type. But in order to prevent an extent's ref count from going down to zero when there still are pendin