linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs/locking.c: minor fix on the comment for btrfs_try_tree_write_lock
@ 2012-03-07  8:13 Wang Sheng-Hui
  0 siblings, 0 replies; only message in thread
From: Wang Sheng-Hui @ 2012-03-07  8:13 UTC (permalink / raw)
  To: Chris Mason, linux-btrfs, linux-kernel

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

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 fs/btrfs/locking.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/btrfs/locking.c b/fs/btrfs/locking.c
index 5e178d8..4e4705c 100644
--- a/fs/btrfs/locking.c
+++ b/fs/btrfs/locking.c
@@ -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)
-- 
1.7.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-07  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07  8:13 [PATCH] btrfs/locking.c: minor fix on the comment for btrfs_try_tree_write_lock Wang Sheng-Hui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).