Received: by 10.223.185.116 with SMTP id b49csp6824046wrg; Wed, 28 Feb 2018 16:39:15 -0800 (PST) X-Google-Smtp-Source: AG47ELu+MDilg4qG5rYXRnc9FQNCErGo4WFjjwLrTtF6aC2NaM40yGyZbaGbmRz7XYMPUFjyrw25 X-Received: by 10.167.128.80 with SMTP id y16mr12581432pfm.91.1519864755085; Wed, 28 Feb 2018 16:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519864755; cv=none; d=google.com; s=arc-20160816; b=ro2k5CIIXtL78+TMhiYtzj8aqX76+ljmDyHFbF7KMCGM+DAr8OG7+vkyd2cImHY/IW 8XHiw4nilR6Omq3E3gt/CS/KstAgn5zePW3G/h8bECCpGmTxQXrvg2mQfGDTkb9ng1gz IRa30wc9obIbW53wh+VcXVphbdfe3Q71CrKKP/I767GKQaRLHcY3uGWcHZO8V87MDOAi AXH/Q1wA56NxKwN8XzR7nqbXF5NOE52UKl8IcuHqVMsDZwJa5cZy9L/a3eBF+4K2Kbhz v1HwLvchUEtYmRzckURVNFXQPWW84M+ifwvEqU4gHapfI+bwUO8MZOVY4NtZPPYijZia ViKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=bLtO/h3UTKGuH870KyauOhzS3TV10Vt+/ofX/zv5smg=; b=YGqnKhh8C9Sf+twd518APGhG5sLkfHn6aZ6GH/ci6apknUnjOKtqS2AYI2dM8Ps3Zn pGGG/WMM8Mf4J3lddiSYmsVkOL98Bm4WxYY2PPUbUtyxR+jg1IxGdPjsG0E+AyVFUFh8 JhHmhNFQl0n05zwbD5xRptDE/CTYnNobj8h5m6xpbGwq8nA3woU1VWJQOUTkx7HTi2eQ D6/smXlX9eTEWIr29y0Q/aAEywh1YJUKIufQF7ydr4BzFZI3+FUA5QOqJWiIWy1qSKW1 I/l+2wBRuw0I7oq8SUmd0UzA4jvc8ehLYTKkDubVLdRim6WbOQ7b5MmDrgzem8lwYf0n RkTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si2107639plm.11.2018.02.28.16.39.00; Wed, 28 Feb 2018 16:39:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965383AbeCAAiJ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Feb 2018 19:38:09 -0500 Received: from smtp.h3c.com ([60.191.123.56]:10079 "EHLO h3cmg01-ex.h3c.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965280AbeCAAiI (ORCPT ); Wed, 28 Feb 2018 19:38:08 -0500 Received: from BJHUB01-EX.srv.huawei-3com.com (unknown [10.63.20.169]) by h3cmg01-ex.h3c.com with smtp id 4ae4_0093_b7284c62_0f57_4d61_9baa_0a5c9b31ba01; Thu, 01 Mar 2018 08:37:07 +0800 Received: from H3CMLB12-EX.srv.huawei-3com.com ([fe80::10fe:abde:731b:fdde]) by BJHUB01-EX.srv.huawei-3com.com ([::1]) with mapi id 14.03.0248.002; Thu, 1 Mar 2018 08:36:55 +0800 From: Changwei Ge To: Larry Chen , "mfasheh@versity.com" , "jlbec@evilplan.org" CC: "linux-kernel@vger.kernel.org" , "ocfs2-devel@oss.oracle.com" Subject: Re: [Ocfs2-devel] [PATCH] Correct a comment error Thread-Topic: [Ocfs2-devel] [PATCH] Correct a comment error Thread-Index: AQHTsH2KCDugZkjy6km/xN7cimww6Q== Date: Thu, 1 Mar 2018 00:36:53 +0000 Message-ID: <63ADC13FD55D6546B7DECE290D39E373F292A95A@H3CMLB12-EX.srv.huawei-3com.com> References: <20180228101720.20725-1-lchen@suse.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.125.136.231] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Larry, On 2018/2/28 18:18, Larry Chen wrote: > The function ocfs2_double_lock tries to lock the inode with lower > blockid first, not lockid. As ocfs2's lock name includes block number, so I think the comment you want to rework is all right. So nack. Thanks, Changwei > > Signed-off-by: Larry Chen > --- > 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, >