From patchwork Wed Oct 20 21:07:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12573365 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEDBDC4332F for ; Wed, 20 Oct 2021 21:08:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 707FA6128B for ; Wed, 20 Oct 2021 21:08:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 707FA6128B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 0FA4994000A; Wed, 20 Oct 2021 17:08:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0829E940009; Wed, 20 Oct 2021 17:08:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E41C294000A; Wed, 20 Oct 2021 17:08:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0229.hostedemail.com [216.40.44.229]) by kanga.kvack.org (Postfix) with ESMTP id B886B940009 for ; Wed, 20 Oct 2021 17:08:06 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 7AB3B181C65DF for ; Wed, 20 Oct 2021 21:08:06 +0000 (UTC) X-FDA: 78718053372.19.C2EB24F Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by imf30.hostedemail.com (Postfix) with ESMTP id 97735E001980 for ; Wed, 20 Oct 2021 21:08:00 +0000 (UTC) Received: by mail-pf1-f169.google.com with SMTP id y7so4008012pfg.8 for ; Wed, 20 Oct 2021 14:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0Upl2CqhTTaM00XnpLoxyW/y8TEVonM+yQlK+1g9tkk=; b=WLzGSX3ENSUti+x/9HxR5yoXNlIjgCpOn4O6vgnTjn4Yi04LrO6SIIWK3dFKfB9EGd M7ynjmL+9UYppcrJrhQPZKNM2+w2TWZgeH6cSRvRVLOk9S4Rtm4/VANyJ45RFzCuxTig b2aJFdXT5F3AbVtWtJn5JR1/SDGwLFpCUGY/aBn1AAJQHf+cNVXmHQa8wKW5jJg0/0Ly cSznQwqrk9dIRHuh+JBgTOgKUDUGMRAaJBFOQbRvtE9WGvsrfPlmYAnn4yuXDM+IkPyZ WoR7zpd56cf0AgGhBNjpK1Ef9zwrvFkLnWoq5DtNhiZDJmHmeeB5rbbcl9ISI1shgE6a KFmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0Upl2CqhTTaM00XnpLoxyW/y8TEVonM+yQlK+1g9tkk=; b=W02uZq+W8kqnxOesp4KJzY9j7IZSZnX0cc4gb0ZDOOfjSdcAu3fOU99Bt0iGve80/j 8oVlkm1Eysz6AQ5BtBTaVcQg6C4seybmyHc0ri+JX+URLN8nB9orfaYk+zHROV1voIUi pPOSySw5dMPyt6ygftpvO0siPQT+1GlllhLyOz9gfgPAAwAG1YmT5qsyWa+J/tYDx80V f/dBTIi9rY/NXKM4/LAUuE+68K0fze0zO7BvAEkXCn/hO8YHPuAt6LvcLAWuorb5zp8a 2GRjbCd6u1qUyf06xkp3czaqWGmQOy5cGIqNUkvh1zUfGzm5ba/YyKCeBvadMYGzxGVV 0BPQ== X-Gm-Message-State: AOAM5331A0SkvgzkdaGDRIT8B+3MLr2pyJQ1vlDBa7mSWPLZI/Fvk3s+ mIb51brPw5lwxuMAwRV1Nxc= X-Google-Smtp-Source: ABdhPJy6C62a+2ttxe2Xo+4qddg6gKC6Bx74zTBsozFIfxwEH0P32OFZiHIgg4KqTuua0h4Pxbr1jA== X-Received: by 2002:aa7:9099:0:b0:44c:a3b5:ca52 with SMTP id i25-20020aa79099000000b0044ca3b5ca52mr1619862pfa.85.1634764085050; Wed, 20 Oct 2021 14:08:05 -0700 (PDT) Received: from localhost.localdomain (c-73-93-239-127.hsd1.ca.comcast.net. [73.93.239.127]) by smtp.gmail.com with ESMTPSA id i8sm3403143pfo.117.2021.10.20.14.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 14:08:04 -0700 (PDT) From: Yang Shi To: naoya.horiguchi@nec.com, hughd@google.com, kirill.shutemov@linux.intel.com, willy@infradead.org, peterx@redhat.com, osalvador@suse.de, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [v5 PATCH 3/6] mm: filemap: coding style cleanup for filemap_map_pmd() Date: Wed, 20 Oct 2021 14:07:52 -0700 Message-Id: <20211020210755.23964-4-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211020210755.23964-1-shy828301@gmail.com> References: <20211020210755.23964-1-shy828301@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 97735E001980 X-Stat-Signature: rp6574bprcbwqub41bepqttwe9kytafa Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WLzGSX3E; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of shy828301@gmail.com designates 209.85.210.169 as permitted sender) smtp.mailfrom=shy828301@gmail.com X-Rspamd-Server: rspam01 X-HE-Tag: 1634764080-117316 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: A minor cleanup to the indent. Reviewed-by: Naoya Horiguchi Signed-off-by: Yang Shi --- mm/filemap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index dae481293b5d..2acc2b977f66 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -3195,12 +3195,12 @@ static bool filemap_map_pmd(struct vm_fault *vmf, struct page *page) } if (pmd_none(*vmf->pmd) && PageTransHuge(page)) { - vm_fault_t ret = do_set_pmd(vmf, page); - if (!ret) { - /* The page is mapped successfully, reference consumed. */ - unlock_page(page); - return true; - } + vm_fault_t ret = do_set_pmd(vmf, page); + if (!ret) { + /* The page is mapped successfully, reference consumed. */ + unlock_page(page); + return true; + } } if (pmd_none(*vmf->pmd)) {