Skip to contentSkip to conversation

Btrfs: cleanup: use consistent lock naming

PATCH In review Dan Carpenter 1 participant 1 message Apr 18, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 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.

fs/btrfs/extent-tree.c +1 -1
index a0bb9dc..29c0445 100644
@@ -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;
 }