Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp750813pxa; Wed, 19 Aug 2020 13:57:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJC0yb5JNK+IYRZX1vHuxakKGpfM7OzEdQmkBLj1gsqOSRrQjGTGgHTBNxmjHGpB+TjcGN X-Received: by 2002:aa7:c251:: with SMTP id y17mr27058394edo.13.1597870657470; Wed, 19 Aug 2020 13:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597870657; cv=none; d=google.com; s=arc-20160816; b=dNArslGNWB0wjAZNJ80tOJthcaNCjlimacpEOPwJ0XFSwLUAUpHtrYn+BoeixUGd5+ 8ppBmql6ii5j4VQJlbyaSvPWbFuIbBgVyeeKiHeHAfY4FvMg6HSe8MeIqP41Xp6Pe+JP dV2etiyS2S5MM1MXO5qEEHCdjodjT0l4rdg+Op+fxPEWUThm+dn50+dU1DV0UtEv+6w2 8sBIhjLu6PZpq2CaazMWFcKevCZJ+jwt+HR/UIn+yPb1lX3SDzi798hYGM6/tUZpJY1X Ffyt2zi136viZ9sb8qUjFBNNk86Jz35iOYW1Xvm42JfZ2j8vIByuqgxnt67r5AL955rF UtpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HLbcN3vXZ9Y2wTIy0CakALnZtq7aqQjupWdhJYMTw6g=; b=uWYpX0l53R9e+LGj6bMCCsaPM1PZt9WNwGS0oyuAQgXQ5ppLdo1xIDDzn3fz8MbCXV IfyWD7pHHb7C05hHQsvlenT92wqS9UTLSxykERF7M4WTlsof5sRLWnNhZC9d2x+QDBuJ 05sKfcDmXAX9lDxGRG0hzqyUrlN2EL7ozb7f+bhBAOQjdfid+TNPw9ffX1NJeV1RWaem APngHw8iSUY1OnnxlRVdJsOMiF+0e2JZI+7qnTZncHykTp7OY13XgsBJra6bxjdlJBw+ WOwfIAHUTcyfrRx67KhrzH+VHe6wmK4WsE9GBRk+FXuKH4oTM86fWZEgi4opAgtytDxf Zwpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Sp9yPMfK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si55025edn.445.2020.08.19.13.57.13; Wed, 19 Aug 2020 13:57:37 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Sp9yPMfK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbgHSUyY (ORCPT + 99 others); Wed, 19 Aug 2020 16:54:24 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:29966 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726617AbgHSUyV (ORCPT ); Wed, 19 Aug 2020 16:54:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597870460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HLbcN3vXZ9Y2wTIy0CakALnZtq7aqQjupWdhJYMTw6g=; b=Sp9yPMfKm0Uo3wrF9NvLpAq8sqMAGWfDvr32tlW/wg1GUdBHUsQzRqv+sxdJyIXUsJKj/l g7IXSea8pQYkXD3fA5Txb676dCeyCH0SuNiXZYTLEcu6EAxEFjobxLM6O8x1d1kEWgHMgA xMchL9XH8mKN70Y/sxT/JAPjUBDs8c8= Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-137-mKx6EMJeM_ajM3CPgSEUyw-1; Wed, 19 Aug 2020 16:54:18 -0400 X-MC-Unique: mKx6EMJeM_ajM3CPgSEUyw-1 Received: by mail-pf1-f199.google.com with SMTP id l195so15709163pfd.22 for ; Wed, 19 Aug 2020 13:54:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HLbcN3vXZ9Y2wTIy0CakALnZtq7aqQjupWdhJYMTw6g=; b=UVSLQWWJDjMfhSV6xwS8+eddtSQUuCPTcYqEw3RQvle2yIsNFminTdTgjkFTv3rEZI kcKpZQy8EvISFePB5DxKDHDSIRsAjbAG2ytvuG8KjmM1UpDwqsMraR+6ir3Gn1a9JKH2 cGcr6nZJx67iruV94BWLGl/W48TdJ2POVwdnFW+szAknODHq/qcYzpyBeSIB0Fq05guM hRW9u2dBHFzkpBXBcwrBmx4QVGOne+Ooe+fL8DyNC35DaC8R+hYzwcl1Gkx3Z3aGC3Zi bdcq0R9kbKotVWXkVmsDmGCkdd3o18tLinAOsuN8pSLRSFKlk4/t3lPFAoVyilNO7kYC y9gw== X-Gm-Message-State: AOAM533srMbGT8VO2eBUE56jXmxvfa8ZpgZWV5+Q3SbenzFXTiLohFQx JS/gRZ6Vyyb2f2n9f4rGQ7J4Lba8VyL4zoR7KB3PDaAY0Aiak1U2ImanW5nL6cJ8N76eT3mNH2M mlrVLoZSAVy1ss7IxZT/TRIfr X-Received: by 2002:a63:151c:: with SMTP id v28mr143593pgl.357.1597870457462; Wed, 19 Aug 2020 13:54:17 -0700 (PDT) X-Received: by 2002:a63:151c:: with SMTP id v28mr143580pgl.357.1597870457205; Wed, 19 Aug 2020 13:54:17 -0700 (PDT) Received: from xiangao.remote.csb ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id nu14sm3825940pjb.19.2020.08.19.13.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 13:54:16 -0700 (PDT) Date: Thu, 20 Aug 2020 04:54:05 +0800 From: Gao Xiang To: Rafael Aquini Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Carlos Maiolino , Eric Sandeen , "Huang, Ying" , stable Subject: Re: [PATCH] mm, THP, swap: fix allocating cluster for swapfile by mistake Message-ID: <20200819205405.GB26216@xiangao.remote.csb> References: <20200819195613.24269-1-hsiangkao@redhat.com> <20200819130506.eea076dd618644cd7ff875b6@linux-foundation.org> <20200819204405.GB2096425@optiplex-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200819204405.GB2096425@optiplex-lnx> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, On Wed, Aug 19, 2020 at 04:44:05PM -0400, Rafael Aquini wrote: > On Wed, Aug 19, 2020 at 01:05:06PM -0700, Andrew Morton wrote: > > On Thu, 20 Aug 2020 03:56:13 +0800 Gao Xiang wrote: > > > > > SWP_FS doesn't mean the device is file-backed swap device, > > > which just means each writeback request should go through fs > > > by DIO. Or it'll just use extents added by .swap_activate(), > > > but it also works as file-backed swap device. > > > > This is very hard to understand :( > > > > I'll work with Gao to rephrase that message. Sorry! Sorry about that :( I just finished the test and went through the related swap code and finally saw this so I think it wouldn't work entirely for the current swap code... and Sorry about my limited English. Kindly feel free to repost the patch with rephrased commit message. Anyway, I've done this task :) Thanks, Gao Xiang