Skip to contentSkip to conversation

btrfs: fix the comment of btrfs_path fields

PATCH In review Sun YangKai 2 participants 2 messages May 17, 2025 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: fix the comment of btrfs_path fields

This comment is originally added in
commit 925baeddc5b0 ("Btrfs: Start btree concurrency work."), for the field keep_locks. The field keep_locks had been moved to another line, while this comment is left in place.

Move the comment to the right place.

---
 fs/btrfs/ctree.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/ctree.h +1 -1
index 075a06db43a1..00f67079f2ec 100644
@@ -61,7 +61,6 @@ struct btrfs_path {
 	/* if there is real range locking, this locks field will change */
 	u8 locks[BTRFS_MAX_LEVEL];
 	u8 reada;
-	/* keep some upper locks as we walk down */
 	u8 lowest_level;
 
 	/*
@@ -69,6 +68,7 @@ struct btrfs_path {
 	 * and to force calls to keep space in the nodes
 	 */
 	unsigned int search_for_split:1;
+	/* Keep some upper locks as we walk down */
 	unsigned int keep_locks:1;
 	unsigned int skip_locking:1;
 	unsigned int search_commit_root:1;
Signature · 1 line
2.49.0
#1 lore raw
Quoted 8 lines · Sun YangKai

This comment is originally added in
commit 925baeddc5b0 ("Btrfs: Start btree concurrency work."), for the field keep_locks. The field keep_locks had been moved to another line, while this comment is left in place.

Move the comment to the right place.

Added to for-next, thank.