From: David Sterba Date: Mon, 25 Apr 2011 23:43:52 +0000 (-0400) Subject: btrfs: add missing spin_unlock to a rare exit path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cfece4db110dacfd6b4b87b912c59e77e6846fc0;p=openwrt%2Fstaging%2Fblogic.git btrfs: add missing spin_unlock to a rare exit path Signed-off-by: David Sterba Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ef6865c17cd6..fe5aec9b3924 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2903,6 +2903,7 @@ static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, spin_lock(&delayed_refs->lock); if (delayed_refs->num_entries == 0) { + spin_unlock(&delayed_refs->lock); printk(KERN_INFO "delayed_refs has NO entry\n"); return ret; }