From patchwork Thu Oct 14 19:16:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12559287 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 AA317C433F5 for ; Thu, 14 Oct 2021 19:16:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4F34A611B0 for ; Thu, 14 Oct 2021 19:16:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4F34A611B0 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 E1B7A940009; Thu, 14 Oct 2021 15:16:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D551A940008; Thu, 14 Oct 2021 15:16:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C43A2940009; Thu, 14 Oct 2021 15:16:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0120.hostedemail.com [216.40.44.120]) by kanga.kvack.org (Postfix) with ESMTP id B04F5940008 for ; Thu, 14 Oct 2021 15:16:29 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 72D042775E for ; Thu, 14 Oct 2021 19:16:29 +0000 (UTC) X-FDA: 78695999298.02.F0125F0 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by imf07.hostedemail.com (Postfix) with ESMTP id AFF0710000AE for ; Thu, 14 Oct 2021 19:16:29 +0000 (UTC) Received: by mail-pl1-f171.google.com with SMTP id y4so4868685plb.0 for ; Thu, 14 Oct 2021 12:16:28 -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=A3q38sz5TQLuQm8PTC3jj3CCsKPnl+MfPRH0XLTbJUc=; b=mXLIVQIouBthENaxBdm2VqBZIku4u1AGd6W1ZaaOxgWQiy5RX6VhPCGStH2EF4ChXs K2G81Kkyp2pxIrVSEhxA8f9yFcbr80Fdo5tERu/IrhoLs0lDsIxccMMFzVkHClRClqgO dUHbAKH/U2/O+nyYesmjSg1lwI7HjIPVHyQzKCmoCq/eBqqxBiLTQ2uVT4Pkn9uEGOF0 L/roMKuworESHBDQC09yh/BSrwbEB5EylcuHOnI7s8guc4fPny4Jn/hfhpvrcoZzRS9b CIPsPEr107/cTZV4qS2DIHaO7UlB1lPQBfMx4YaO4S6tcpqQ+F9DF5o9BLHkjuAygjyB pAIg== 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=A3q38sz5TQLuQm8PTC3jj3CCsKPnl+MfPRH0XLTbJUc=; b=awOOfxBE5+4vUV2FEE3PssHOiinpmgVBjN61EfiHJg9y4GgUJqrYWE3mNnWGd4xSPt zlBZUdVyT450sUe+94JCEa2HjhNNm/Al+75LlmelfH/0EaUCNiRaLlN8viNr2d25qbdL Y+SJISzFQ6o6f3HENst6l0CFDIFd9ntHiJBVh8+g6HAgUSsfOa4BinUSCnwIIAeH9ema 6M/+pKYAZudArzEm0clbBZRDFvFj1luz2zenbiIAUWQqKbzrHP/uGQgmaxvGXam/1lD6 kCDnWzviauh6To2wY+cH3Fl51OwC96+erKuy7ap/3nsV7EBdnAPgiskT5zw/i1TAuGqj 3qjA== X-Gm-Message-State: AOAM533qXPTtnSNpYuvmD/AvWF1OideFTf+EFlyxXoJMyDhK/ViQDlew +W5Gmm0oJFzLiYq3IaLsZ5Y= X-Google-Smtp-Source: ABdhPJx8w4/5fJ9Y+BPcAC+KITIYMRcfP0E7okMaDz7ZTf22nTEU3eQ5AX8c63r9ilNdBR3nJCgaGw== X-Received: by 2002:a17:90a:ba09:: with SMTP id s9mr8348022pjr.42.1634238988236; Thu, 14 Oct 2021 12:16:28 -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 x129sm3253922pfc.140.2021.10.14.12.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 12:16:27 -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: [v4 PATCH 3/6] mm: filemap: coding style cleanup for filemap_map_pmd() Date: Thu, 14 Oct 2021 12:16:12 -0700 Message-Id: <20211014191615.6674-4-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211014191615.6674-1-shy828301@gmail.com> References: <20211014191615.6674-1-shy828301@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: AFF0710000AE X-Stat-Signature: ubnnkbhz771pg5jkw7u5jn8a6woc78yp Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mXLIVQIo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf07.hostedemail.com: domain of shy828301@gmail.com designates 209.85.214.171 as permitted sender) smtp.mailfrom=shy828301@gmail.com X-Rspamd-Server: rspam02 X-HE-Tag: 1634238989-467928 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. Signed-off-by: Yang Shi Reviewed-by: Naoya Horiguchi --- 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)) {