Skip to contentSkip to conversation

btrfs/locking.c: minor fix on the comment for btrfs_try_tree_write_lock

PATCH New Wang Sheng-Hui 1 participant 1 message Mar 7, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs/locking.c: minor fix on the comment for btrfs_try_tree_write_lock

btrfs_try_tree_write_lock is used for write lock, not for read lock.

---
 fs/btrfs/locking.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/btrfs/locking.c +1 -1
index 5e178d8..4e4705c 100644
@@ -142,7 +142,7 @@ int btrfs_try_tree_read_lock(struct extent_buffer *eb)
 }
 
 /*
- * returns 1 if we get the read lock and 0 if we don't
+ * returns 1 if we get the write lock and 0 if we don't
  * this won't wait for blocking writers or readers
  */
 int btrfs_try_tree_write_lock(struct extent_buffer *eb)
Signature · 1 line
1.7.1