Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp313012pxb; Wed, 20 Oct 2021 23:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDWo9Ank8J1v50G4ZuDtUyLd+JA+E+FZM+z4yr3VWp64a44pCHooNgFRWXDdWiz2/2vDvm X-Received: by 2002:a17:90a:b112:: with SMTP id z18mr4234675pjq.198.1634797249524; Wed, 20 Oct 2021 23:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634797249; cv=none; d=google.com; s=arc-20160816; b=V5ZvbUjX4dD98I5uhgHqXZV8r530LSOugyhml94kSKkyq5aTlt9epIH8fZjLGg5222 15Q2YtW9CgNuTX0aSrCrg4aXJMXLB50kzf7VEyUHDx8DsBDggyCYHneI/2X7Z8046v9D HL/yfH4hpWOnI6+JrZWL2CDj0D8bzIJUevzN8xwGNy4k+caj0ACnjLIeSMjvvkpwBD8C e2B+HCiMdJmXXhq1EvrJPjG+HC8Vf73XJ8icYhZQHwbxvhbEqxBhgonwMVdXD/bdmTKe 3JJjXsdlp1Ck27gx9+LNDGS+JmIee+3epLFvi4jtDy35Tbr4IYnCazKnztFXB58H2tvS MLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=WYydNZ39tTBXcA1u7dEo/PMDZWq4S9k7QldoG2rPHf0=; b=Q9/SVTsqhAi/G+ESlW36xhQB/DScYoeNY2RxTpMYLShgilzNmFicLvAVCChrBCeXlW FKWXfrfjv2UDszUhg5WHwvFEk+EVXfGVp6BI9aMFFqnYDtDhe5wOpDhiPJJTfukuN/VY dTHJgeNQjn3fs6QweJjZQEpkT6zispIFJleyXjl7yl6uIQ7A/6/W3VfXcX6KuWTDDHRY 0GQCWbBRfXuNkK9PLzVRGR+IC2bCrU2mpV/fJMxSxUigFYLE7ORLXtojnMTAWJVWPjVx WIcrMeL7hZSb73apXHaeFBFJQ2cbRoIFWyTpGL8bh12sN7bCvO2/NiyitjMaHzBrmWfO qA/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b28si6079741pgm.428.2021.10.20.23.20.37; Wed, 20 Oct 2021 23:20:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231268AbhJUGVZ (ORCPT + 99 others); Thu, 21 Oct 2021 02:21:25 -0400 Received: from smtprelay0132.hostedemail.com ([216.40.44.132]:59666 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231154AbhJUGVU (ORCPT ); Thu, 21 Oct 2021 02:21:20 -0400 Received: from omf14.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 85EFE180A7FD9; Thu, 21 Oct 2021 06:19:03 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf14.hostedemail.com (Postfix) with ESMTPA id E44AE268E38; Thu, 21 Oct 2021 06:19:01 +0000 (UTC) Message-ID: Subject: Re: [v5 PATCH 3/6] mm: filemap: coding style cleanup for filemap_map_pmd() From: Joe Perches To: Yang Shi , 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: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 20 Oct 2021 23:19:00 -0700 In-Reply-To: <20211020210755.23964-4-shy828301@gmail.com> References: <20211020210755.23964-1-shy828301@gmail.com> <20211020210755.23964-4-shy828301@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.80 X-Stat-Signature: 64ft3rw8juah3bgj3ctej1k981mcjdh9 X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: E44AE268E38 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19JoPEesXP36Tf6MauoxaqjNy1Pzi0FNk8= X-HE-Tag: 1634797141-827303 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-10-20 at 14:07 -0700, Yang Shi wrote: > A minor cleanup to the indent. [] > diff --git 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; > + } It might be more preferred to add a blank line after the automatic when touching this block.