All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] Correct a comment error
@ 2018-02-28 10:17 Larry Chen
  2018-03-01  0:36   ` Changwei Ge
  2018-03-01 12:56   ` piaojun
  0 siblings, 2 replies; 15+ messages in thread
From: Larry Chen @ 2018-02-28 10:17 UTC (permalink / raw)
  To: ocfs2-devel

The function ocfs2_double_lock tries to lock the inode with lower
blockid first, not lockid.

Signed-off-by: Larry Chen <lchen@suse.com>
---
 fs/ocfs2/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index c801eddc4bf3..30d454de35a8 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -1133,7 +1133,7 @@ static int ocfs2_double_lock(struct ocfs2_super *osb,
 	if (*bh2)
 		*bh2 = NULL;
 
-	/* we always want to lock the one with the lower lockid first.
+	/* we always want to lock the one with the lower blockid first.
 	 * and if they are nested, we lock ancestor first */
 	if (oi1->ip_blkno != oi2->ip_blkno) {
 		inode1_is_ancestor = ocfs2_check_if_ancestor(osb, oi2->ip_blkno,
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-03-02  2:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-28 10:17 [Ocfs2-devel] [PATCH] Correct a comment error Larry Chen
2018-03-01  0:36 ` Changwei Ge
2018-03-01  0:36   ` Changwei Ge
2018-03-01  6:59   ` [Ocfs2-devel] 答复: " Lei Chen
2018-03-02  2:00     ` Changwei Ge
2018-03-01 12:56 ` [Ocfs2-devel] " piaojun
2018-03-01 12:56   ` piaojun
2018-03-02  1:59   ` Changwei Ge
2018-03-02  1:59     ` Changwei Ge
2018-03-02  2:15     ` piaojun
2018-03-02  2:15       ` piaojun
2018-03-02  2:37       ` Larry Chen
2018-03-02  2:37         ` Larry Chen
2018-03-02  2:38       ` Changwei Ge
2018-03-02  2:38         ` Changwei Ge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.