Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3684811ybh; Tue, 17 Mar 2020 04:47:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvUZbfRAenC+3hUbsT+eYbVM4yfsc0ageRMXzoDVFHDIk3NgQIMCIbZvuuOeY4+Baduogxf X-Received: by 2002:a05:6830:2014:: with SMTP id e20mr3334145otp.317.1584445644061; Tue, 17 Mar 2020 04:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584445644; cv=none; d=google.com; s=arc-20160816; b=DUfjl52ZHkK4hVeSGMp/UHdPU5IOtj58oDnVhnl3zpg/6Vph0KTn87NOYPS0reAXGa Knmvzufq8js+UVeUwvf/i5J4u0N31ke7hChUKi2CqGOL7LYA2Ike8K2pR2IbW+uu5+EJ fSa52UFws5kIbwxOxIJJnDPfua9fg6MnPUntY2jm849RFYDSD5AxGaIWyYn4FpmmqHSO dBK1IL01++ARfheeCu7aYZ1GHvkRdCfH8AO+4OUYiCzFbV8oRMRT/iT4zWQOkdb3Bk8u 4hgME4CSdchPz7+i01bNheintRNhucmqn7r4CVYQbsq0cVXPa/xhv4uUBeV3D3FVD97e zkjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dUQX8mFk3gSlBbscD/fDRe/11PYGyXL/SKXh6MlIM2I=; b=bfIRUdjS6fLfJD0Rdq0UwDSsOwB+Hmf+uQPGVI2NRbQInxtA3QUDjrwNNzi6IP60HF BALHSyl0QmgMGnkNpUxSsg4zMouJgbtDL8oVB/+LKUiD4BQIxxbcIB+5oXphTED2JRYR hd0yKiSDf2eZYt/Qc/d0gCaE1o1qIdIslMhC07cvdbJxNPw2Hq/MyMi0JleNPEhv9bd/ 9RJJR74s+pbBYSdlSV4ZuKdMBWZKjOTOxKWIsyf1R5sjki5I7PRGzCe6t/npMPTJZrYn 3YsOgMY5ncHe1CO1gsT26Bq/MBZa+PUl+MLj6+fwQrOLwyCcKv2zilW5tq59bQeilg4/ lDHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t8oTFxnl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si1643515otp.225.2020.03.17.04.47.09; Tue, 17 Mar 2020 04:47:24 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t8oTFxnl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726478AbgCQLp4 (ORCPT + 99 others); Tue, 17 Mar 2020 07:45:56 -0400 Received: from mail-io1-f47.google.com ([209.85.166.47]:45780 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbgCQLpz (ORCPT ); Tue, 17 Mar 2020 07:45:55 -0400 Received: by mail-io1-f47.google.com with SMTP id w7so5223065ioj.12 for ; Tue, 17 Mar 2020 04:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dUQX8mFk3gSlBbscD/fDRe/11PYGyXL/SKXh6MlIM2I=; b=t8oTFxnlKiNsNwIGO46DVvIsUdMcJk/CBjPchswlZgkJ+uCzem/a5y7p0j2X/O6zFN IH4qXVogDVQMS6CZy/Kc1B0gq9zQ/nNrkB6raK4JhJEyqqT/6qorhXtpj8KSnXgzyRRS hDIMroxkdnSjoousQu2w/GjfU0Hal+AG69C7L65s7NkTQuudHkfsqURN5Kx6ER7tZLGW 1cn2duSBVpNQJG/SS11I7ydlzOK0lNYZofRJuzLoCwrcPSPzh0jkO1tofwXdSsn+P7yu eDML9HrSIH17ztLFQasZS9se+aod8L6bPEh5CURXWfha6l6uhZpEKzFAl0inBwlBjCYl VdOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dUQX8mFk3gSlBbscD/fDRe/11PYGyXL/SKXh6MlIM2I=; b=XZJK6Csrf+Bi1MX1bRxtRcpTSuyJOkIWrguuw5FbqeiulKrFVHxorZjTdcxOXRZQXL 9iX/ft5SrF1P1Syw8SWAd8aAwYJZ/kiCkaWtYeGMOxMd+qTFBn+6tCnsbJmso6ee/G7g baAGSiiMzNIDBRMe5xT6QASQ6NEr2IiLe9/nwl2Asxk7MoeV5LRYa7h1Bv3FTs4PH7Nr /V47CeMO1Qrm+nydxgnfGXX/8JQaVQ6k/Did22AMSzGhbmx66g/qFceVObzsvWovhsfT kA7m4iDK4ulTQjo4zqc1M9dlW/3rQQrEU5AJ20Nwl3m4wFV72tJNmNWi0z8T9Uq2eBoC R1xQ== X-Gm-Message-State: ANhLgQ2w+34JMH2ByYmcVRl5E650//RnaLmcwIRI5SdCXxDivDTH8doQ YYKqBlO7gOvv/3ntCIkscOgqoJf1KQd5OXS3cg== X-Received: by 2002:a6b:c8d4:: with SMTP id y203mr3627684iof.111.1584445554704; Tue, 17 Mar 2020 04:45:54 -0700 (PDT) MIME-Version: 1.0 References: <1584333244-10480-1-git-send-email-kernelfans@gmail.com> <1584333244-10480-3-git-send-email-kernelfans@gmail.com> <20200316085536.GB1831@infradead.org> In-Reply-To: <20200316085536.GB1831@infradead.org> From: Pingfan Liu Date: Tue, 17 Mar 2020 19:45:42 +0800 Message-ID: Subject: Re: [PATCHv6 2/3] mm/gup: fix omission of check on FOLL_LONGTERM in gup fast path To: Christoph Hellwig Cc: Linux-MM , Ira Weiny , Andrew Morton , Mike Rapoport , Dan Williams , Matthew Wilcox , John Hubbard , "Aneesh Kumar K.V" , Shuah Khan , Jason Gunthorpe , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2020 at 4:55 PM Christoph Hellwig wrote: > [...] > > Wrong indentation. We either align two tabs for continuation > statements, or after the opening brace of the previous line. With a > likely or unlikely thrown in the former IMHO looks much better. E.g. > > if (unlikely(flags & FOLL_LONGTERM) && > is_migrate_cma_page(page)) > return NULL; > OK, thanks. I will send out V7 to fix it. Regards, Pingfan