From: Dan Carpenter Date: Wed, 18 Apr 2012 06:59:29 +0000 (+0300) Subject: Btrfs: cleanup: use consistent lock naming X-Git-Tag: firefly_0821_release~3680^2~2518^2~42^2~30 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a25c75d5ad04df0a7abd09585231b4021a91a358;p=firefly-linux-kernel-4.4.55.git Btrfs: cleanup: use consistent lock naming It confuses Smatch that we use two names for the same lock. Plus the shorter name is nicer. This doesn't change how the code works, it's just a cleanup. Signed-off-by: Dan Carpenter --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 49fd7b66d57b..59ae191d4f93 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -3578,7 +3578,7 @@ again: space_info->chunk_alloc = 0; spin_unlock(&space_info->lock); out: - mutex_unlock(&extent_root->fs_info->chunk_mutex); + mutex_unlock(&fs_info->chunk_mutex); return ret; }