From patchwork Wed Jun 22 17:06:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12891168 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F93FC433EF for ; Wed, 22 Jun 2022 17:06:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BDBDE6B00CB; Wed, 22 Jun 2022 13:06:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B62836B00CE; Wed, 22 Jun 2022 13:06:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F8286B00CD; Wed, 22 Jun 2022 13:06:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8EB4A6B00CB for ; Wed, 22 Jun 2022 13:06:51 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5DAC471C for ; Wed, 22 Jun 2022 17:06:51 +0000 (UTC) X-FDA: 79606501422.18.B4F95F7 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf14.hostedemail.com (Postfix) with ESMTP id ADC46100086 for ; Wed, 22 Jun 2022 17:06:48 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LSqVY0PsfzhYfV; Thu, 23 Jun 2022 01:04:21 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 01:06:28 +0800 From: Miaohe Lin To: CC: , , , , , Subject: [PATCH 03/16] mm/huge_memory: fix comment of __pud_trans_huge_lock Date: Thu, 23 Jun 2022 01:06:14 +0800 Message-ID: <20220622170627.19786-4-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220622170627.19786-1-linmiaohe@huawei.com> References: <20220622170627.19786-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655917609; a=rsa-sha256; cv=none; b=dkoREgplbEVJaWPAfadGwo96E4MLSDXfthwdvEeFnVE96RZckilo7vI4QEobBDYoWedQ/y LdoKhJ2rlbGutZRFiq2Da0WqvDFF2O3RitZUfuNCw5QQjSK86dfRWvdgmyMX80uI6LrKok 4stZQ2z2mULgidPkYuWiUfM0DQzLRdQ= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655917609; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4T0BOGbjX0YOuzWQpx9fYBhCncXi+3oKiyRRGZEpyqc=; b=xBiTVl7nFwfsnSBsI4vHq5GKfHqFiiTElinasTMFu6FdeafnaV28T1j7RgprpSPTOnneUx i1+ay5yPQG3gCc8cY4DFVitlpCRox8x0hB19dlAhFPc4p45grNWM5MBJ2XxgQM9dwH1k3Y tKvQS0HFIqyvbvy+ehPgXFemd3LxFyY= X-Stat-Signature: gx7tcswzcaom4999bfd89z5utnuk7t7n X-Rspamd-Server: rspam06 Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspam-User: X-Rspamd-Queue-Id: ADC46100086 X-HE-Tag: 1655917608-923950 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: __pud_trans_huge_lock returns page table lock pointer if a given pud maps a thp instead of 'true' since introduced. Fix corresponding comments. Signed-off-by: Miaohe Lin Acked-by: Muchun Song --- mm/huge_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 83fb6c3442ff..a26580da8011 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1903,10 +1903,10 @@ spinlock_t *__pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma) } /* - * Returns true if a given pud maps a thp, false otherwise. + * Returns page table lock pointer if a given pud maps a thp, NULL otherwise. * - * Note that if it returns true, this routine returns without unlocking page - * table lock. So callers must unlock it. + * Note that if it returns page table lock pointe, this routine returns without + * unlocking page table lock. So callers must unlock it. */ spinlock_t *__pud_trans_huge_lock(pud_t *pud, struct vm_area_struct *vma) {