Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3813810ybi; Mon, 27 May 2019 06:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwpvhuyVZSzfh5Z2F1tsjY+6BpIfPJCC1BpRSKqGn+QyHDmguxX2tEJEbgeQzQD6OqZbqv X-Received: by 2002:a63:680a:: with SMTP id d10mr6215282pgc.117.1558963849286; Mon, 27 May 2019 06:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558963849; cv=none; d=google.com; s=arc-20160816; b=ZNPhUK6aafEoQpbU7HHkbUTjnITGNEQfFkKw6NpEox+nE86YyGLVoP65/jw06fpJ3W 3CSZQNt7lW9P1lh0F10ksS5MDtaioDT4uZhnj8uaXVV9n2IvHLWySPHL7Qn1AY2chFy0 9X2gRa3Bmzr8T+vZFGeG6lwi9XoD2iiChBCtyOMe51TbH2IzJdyDATlrtR4YaZ11WC2C 7WYZOCOFOvLvg+/adsJrjQd/ExuDE3w5WBPb8enmtm2xEH9e6gKFSKaXoHUBQDas+1J/ 4nPAgaRMh+DqwlNNLluKt/BGiuaoaFrIQx+Tp1seq4rES6W5WNUoBR29cJi+fupeeost waHg== 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=m+dXzPFPF0QC/08N8/jLGXcjGIV+v/pjQg8Lvb1aVuM=; b=VodQA4bV6KNpukz7lYLo1uxgj71Ju0bt1BVcoQRlsDz9WFFvX8iytIN43erWyDyYqy omrhdOIaK+9Qbv7kFTYriCX6F/qSJV3dasYjXyyDzWU59N8KxvTMhIgUhYSTVmkatrH1 CSpPS3SLSMKiQkUwipztEsFfG5aIpbu9j3eE1sscdidzcCZeTlJ9MHwuk2ScUhDgO4pA M1oVyNJhKVN4dOHQfdHjTVBvEaSPuDNAjxlUrAXq2qh2dVgzaYm8uZ27ayf9dMWyycY7 ePR4d+bHMbShGIX/SISteyHI8MqW+sKhU/uMs1t5V8RAdH+eT0TDsAsLPR8khj4Kixxf rIPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzL1+1C2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si18129274pgd.256.2019.05.27.06.30.33; Mon, 27 May 2019 06:30:49 -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=@amarulasolutions.com header.s=google header.b=WzL1+1C2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbfE0N3G (ORCPT + 99 others); Mon, 27 May 2019 09:29:06 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43092 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbfE0N3G (ORCPT ); Mon, 27 May 2019 09:29:06 -0400 Received: by mail-wr1-f68.google.com with SMTP id l17so8549890wrm.10 for ; Mon, 27 May 2019 06:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m+dXzPFPF0QC/08N8/jLGXcjGIV+v/pjQg8Lvb1aVuM=; b=WzL1+1C2hQtI9ONr/IqYQEZ+4v1XArIttWiAETlxVdn4U0Xd1Gr6peUX1hFoSTulxo DOB5jUtmPKC9AOLSl7nkNoLllSdcLbKe/8sQsKDi3f9Ak0liBKjC/S39b3sLyJdkJCc0 5WKLezBgJUOPDVnZUgdTZyP85Qg4h94tAac+Q= 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=m+dXzPFPF0QC/08N8/jLGXcjGIV+v/pjQg8Lvb1aVuM=; b=oGBbBI7cyVXOOBWhCkPv198GojNdv5cSdZvFuwEetHE6tHjBf68Z70u3dljCsoc4ba Nm1mZi6qjAihWqkBzrQtudT3eoNmeDrycX6WWZjvpe1UPCNM4w0yFNgL/Z8x55P8794v kBXTX7H4wh06yEpcnd+FStrz6dmCHWlaRVHY9fnKmGTHxFesb5rWGCfrPOj6amn0QoIL 2jPa0YN5za74Xx2W0psLouyssj85HkHFsMJd59a1q7yw419v/m1mJXXlElKw0FtMCsz4 w2Yy3Ppu4nZRA4keymfg4zru1Dzqu5S9GDNdEz/F48zMpQoLb8tlOQj11trb2sMdWcS+ OTmw== X-Gm-Message-State: APjAAAWbMJdG1AXa/f6GwgIffr6q8Z78SlmB4K/ivw7glqjf/5SrqRaF ERW4NcUlXswGlMhY4g4JTCik5Q== X-Received: by 2002:adf:8062:: with SMTP id 89mr3791540wrk.97.1558963744716; Mon, 27 May 2019 06:29:04 -0700 (PDT) Received: from andrea (86.100.broadband17.iol.cz. [109.80.100.86]) by smtp.gmail.com with ESMTPSA id n10sm5377784wrr.11.2019.05.27.06.29.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 06:29:04 -0700 (PDT) Date: Mon, 27 May 2019 15:28:57 +0200 From: Andrea Parri To: "Paul E. McKenney" Cc: "Huang, Ying" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Minchan Kim , Johannes Weiner , Tim Chen , Mel Gorman , =?iso-8859-1?B?Suly9G1l?= Glisse , Michal Hocko , Andrea Arcangeli , Yang Shi , David Rientjes , Rik van Riel , Jan Kara , Dave Jiang , Daniel Jordan Subject: Re: [PATCH -mm] mm, swap: Simplify total_swapcache_pages() with get_swap_device() Message-ID: <20190527132857.GA1429@andrea> References: <20190527082714.12151-1-ying.huang@intel.com> <20190527101536.GI28207@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190527101536.GI28207@linux.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > But where do I find get_swap_device() and put_swap_device()? I do not > see them in current mainline. You should see them in the -mm tree: https://ozlabs.org/~akpm/mmots/broken-out/mm-swap-fix-race-between-swapoff-and-some-swap-operations.patch or http://git.cmpxchg.org/cgit.cgi/linux-mmots.git/commit/?id=87efc56527b92a59d15c5d4e4b05f875b276a59a Thanks, Andrea