Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp516822rwd; Wed, 31 May 2023 01:21:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cv/LZHIVG73zQtccizw007vo4k/n25KY73QdbupM0zdcfoNRlfClb5QLVPN2Os9oslhsF X-Received: by 2002:a05:6a00:9a5:b0:641:39cb:1716 with SMTP id u37-20020a056a0009a500b0064139cb1716mr6596228pfg.20.1685521283406; Wed, 31 May 2023 01:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685521283; cv=none; d=google.com; s=arc-20160816; b=hThYfYmyjDYS/N6jyT8/rt/DDkeSNmBwC+pCahm6Lwx2UWcbwnw9E5FaqGi85eguc9 nCzqgRk5LuE2VXd6NcjMNOeDdq5vS1pXzgYRftzOsETgVDhFtgk+G7hT6QDno3j8H105 lwOH297r2Naq2coS/1Cr53TrF49mhXe9mGty9lfrhg10Y4j2g9zo6V3OW5Dvxufp14/V t064uhF3gqrMpdPVLIOkP3GftHPyMgjao08U9mQ4teqFWk4v4Mk9G83cxLjiRsb1Me+y tky/ndLwiaI5F2cyboE93+7V2+Ls+TLPpYqM+PT6CJz5vOfmb9P/BeX0kuJ8DrCIhTD5 CKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=XOB0vfWNd/3N8aaFlpLooYega2vQlYMAF6QRKGMinKw=; b=TXTe69faUarPvdWr9yzqfw59mj0Tk3Y2U/pHiAYFx7OTxJN/Z2Eag1i3dYOPA9uW4M 8Nld2Kiwk/Q8DpUhYzhPBG3BlW/NUjGZWhZS0ejgN5xeQSJ0spCNDC0oKXBdkMmpQVbn d1N8aCGaUhWGNFcAkCnP+SAONtjhFm6DY6eVdcOelVR06VD4zjODo4mAmiwsZGxM93y6 wZpT/j7qTaobntNfBFksf43m3YczOuU929OD1apVvp3Jkkx02TkzVdgDcy1wI9TxSeGC IckhGnxDpDPn4lkJJqx3tI7QaWXKRiXmO9Nv3STqMj1b1m07RW6AuUopaohubfLJYAgf y+dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SgKW5bvK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b0053fc757bb07si561038pge.554.2023.05.31.01.21.11; Wed, 31 May 2023 01:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SgKW5bvK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234750AbjEaHqF (ORCPT + 99 others); Wed, 31 May 2023 03:46:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234742AbjEaHqA (ORCPT ); Wed, 31 May 2023 03:46:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1DE93 for ; Wed, 31 May 2023 00:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685519108; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XOB0vfWNd/3N8aaFlpLooYega2vQlYMAF6QRKGMinKw=; b=SgKW5bvKzHs+C7ZZ7M5tTjy1Gk9DtRdFGjxpnhskVogZ3lqL0vJeglKtSUBrHh6CgzXZyl vECG5Ni20hQWwbVupLIZtukCQGOFEfmkbzVKfbBqE0H+OHVMffNpQ7h/caWwcdnl8VhF4/ dGLj9tBpAwDcJQ8133XJVndoeEzqR3o= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-591-y-FseXIoOLKi6yTHrRHwnQ-1; Wed, 31 May 2023 03:45:07 -0400 X-MC-Unique: y-FseXIoOLKi6yTHrRHwnQ-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-30aa5fb26b3so3312323f8f.0 for ; Wed, 31 May 2023 00:45:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685519106; x=1688111106; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XOB0vfWNd/3N8aaFlpLooYega2vQlYMAF6QRKGMinKw=; b=gi5kohd9UGTNAakt5rTa7qsBx1iSdZYjZeSeEB8s8vVKZNtX6HSEsjPifzGrUgj1cR K4Y6MriQnsRUMLaRl6YN2Xbdeszd+0TaCrTR8sYjcNMiarKF2Fmf8tEc6wfCjeddep34 K8hxwNhd3LA/H2qrEjbgpK8XIPDqJvqcjoXRedE+mvSPKDR15q5LRW0sZwZB2JoCCc+v yIRHtv7lyTt5nNEqJcXwmQBnDbBAQS6SK3qgjIBMbiSkzz3dyXxiWi+Hy1/d/L7U3TSW bhtuPXTOyVF4lIlfMw/ctBGgBfpKgk+fU56upBrnci7J0jJOnMe1DdYrV1kdEBUj5gRo +uSw== X-Gm-Message-State: AC+VfDxRp5rwSgQwYiv0Mv18TjA19yZCyNJiG6EHEmm+JwhFjPKfOpFy GL/UQsOptDPwhRK4iP9ClG2/IqTf43ovaJB4ExkbW1kx0VzaI/YxBBasmeeCjCdM7GDo2SICUSY Fb2BeCqHQXqNUIZ6gbPUYJwc+ X-Received: by 2002:a5d:4cd2:0:b0:307:a52c:26b4 with SMTP id c18-20020a5d4cd2000000b00307a52c26b4mr3221204wrt.66.1685519106538; Wed, 31 May 2023 00:45:06 -0700 (PDT) X-Received: by 2002:a5d:4cd2:0:b0:307:a52c:26b4 with SMTP id c18-20020a5d4cd2000000b00307a52c26b4mr3221182wrt.66.1685519106183; Wed, 31 May 2023 00:45:06 -0700 (PDT) Received: from ?IPV6:2003:cb:c749:cb00:fc9f:d303:d4cc:9f26? (p200300cbc749cb00fc9fd303d4cc9f26.dip0.t-ipconnect.de. [2003:cb:c749:cb00:fc9f:d303:d4cc:9f26]) by smtp.gmail.com with ESMTPSA id o1-20020a5d4741000000b002f9e04459desm5686117wrs.109.2023.05.31.00.45.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 00:45:05 -0700 (PDT) Message-ID: <5151bb67-550b-87f1-f656-20683052b0aa@redhat.com> Date: Wed, 31 May 2023 09:45:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH -V3 2/5] swap, __read_swap_cache_async(): enlarge get/put_swap_device protection range Content-Language: en-US To: Huang Ying , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Johannes Weiner , Matthew Wilcox , Michal Hocko , Minchan Kim , Tim Chen , Yang Shi , Yu Zhao , Chris Li , Yosry Ahmed References: <20230529061355.125791-1-ying.huang@intel.com> <20230529061355.125791-3-ying.huang@intel.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230529061355.125791-3-ying.huang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.05.23 08:13, Huang Ying wrote: > This makes the function a little easier to be understood because we > don't need to consider swapoff. And this makes it possible to remove > get/put_swap_device() calling in some functions called by > __read_swap_cache_async(). > > Signed-off-by: "Huang, Ying" > Cc: David Hildenbrand > Cc: Hugh Dickins > Cc: Johannes Weiner > Cc: Matthew Wilcox > Cc: Michal Hocko > Cc: Minchan Kim > Cc: Tim Chen > Cc: Yang Shi > Cc: Yu Zhao > Cc: Chris Li > Cc: Yosry Ahmed > --- Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb