Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp27969ybz; Thu, 23 Apr 2020 17:35:32 -0700 (PDT) X-Google-Smtp-Source: APiQypIh2/7otZFq7zWbjyX1FH1S2WF8ZA7de9FKh3igwxoSt8rccM4/Ov7t1IBA+MNJPEBrnmHC X-Received: by 2002:a17:906:7e19:: with SMTP id e25mr5168750ejr.358.1587688532165; Thu, 23 Apr 2020 17:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587688532; cv=none; d=google.com; s=arc-20160816; b=YqA28hZf0wRYE88FAPIyYvh6m8xHTIG8fq9UF0kzIZB/lsyiUReSmN7s4QOnm9uVjc +SDGoQJYA1MID4027DV9vJIzIGYoXfYRUL14llF4jun9DsMVNxLjy2l5qxz+jHo5IbIj dhDIwYL+2HAL2T1vAtWUUTVmNElDdohdd24ry7xr3+rDYGmy434t4j8BZWXsFJuQrEIO TnhoSBRMXGMnN67MUmSrBUIrdzUWB38+Egl+eIy+3oD9ZUKNuKRvtdJKGxdPzzcFX8Ss l0KkyN3+/1ojYrsANlUFO2CT/fWF3lQmtJNF+udUf9ybRXwrfHYoGsCjO2YBh+0wDM1+ Tf8A== 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=CI/1B5Cidn96PsLF1+MV6uHHJxnOtG8IuRZiucSwLqg=; b=SJdlwW3mAWsM/PwD8Ab+cQLj5gsWewB0rFWIueuz4+StZTav2jUGvMqxa9m0n1K/gj wd0VbpTYxjeJ/CAHLIyIKz9Q5QpKPaEsqrJjAWsjhBRY2BOhwXiyavP7WAomqCycKEko QdKgt8hT2priuDM9eIUVQ/fhEA/muJdHIPVccuvmkfXokaAvwjexpvpGQd6DXlrAx794 yPVY5sEVQ6nnhlD916s8k5s+I5vfAMnRQPLCY0f6XlXz7h22YaXovUKXzWklVY63MGiH 2NNHZzvTB8jT4ZcoyJ5toDFelk0MjYQ6vihtMOl6R8m3D6mPLsbU9SvtKsD1Lks1YRRf iC/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u0+t3gSF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq22si2016205ejb.213.2020.04.23.17.35.09; Thu, 23 Apr 2020 17:35:32 -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=@gmail.com header.s=20161025 header.b=u0+t3gSF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728354AbgDXAaj (ORCPT + 99 others); Thu, 23 Apr 2020 20:30:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728244AbgDXAai (ORCPT ); Thu, 23 Apr 2020 20:30:38 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA1F3C09B042; Thu, 23 Apr 2020 17:30:38 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id hi11so3241098pjb.3; Thu, 23 Apr 2020 17:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CI/1B5Cidn96PsLF1+MV6uHHJxnOtG8IuRZiucSwLqg=; b=u0+t3gSFNWhK/2bnK/QRc6HtUv83cARoTNpUd4TiJNOcMJz4I9cfqiF0ls+ngsJQFc k0oU8JEm6gqxKnX66U5j3OzqbI9sPdzd1V4yDvG3PsPwCzgJcB4FRDncbQJWVPbbvmVu /mhMZlY9Vt5ukryupUkZ32AsEqym9dDnewKDOf69r/BHg/V5wmMQrcntbqa4JbfvMEPl qVfNo2lKVdjaQU2ihOQ+DC2MYz/U/dhqorIAZSE3n0IqKLAHqPLT86RoUOixMdq2UleY +fAFeLfN7qDUWZqIaVIjBMPrOjRYx0ySqgmCxLkApI7G+ttGIXtuo3aiJmwAoE/wfX1Q X1Gw== 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=CI/1B5Cidn96PsLF1+MV6uHHJxnOtG8IuRZiucSwLqg=; b=qCwQOx0HG++vZtrrAwGqo1o+eyz+hBFqwYS6DxPlmrzNZ/K1DE01a4EIWlDvfrvCya qKpCNT7Kr1UqAJ5i4FFgvBuSuUAzhKQfCUhsv6jblRmoasLau6GbAk74NK5UhwLPuwJk Wgh3KA5WF2cX/g+vyP9RLhsUuk7JshpK1gqnvsMGo8O9UZV4Oepv1dMR8EZjKsKVArAO nYHow35MTUuKjrIW9n5z+gsKW6KCaHZ0uU7QR2FLu1c+Owp2N+N6sWB5pgakhhmrwJcV XHwm8VVTCGHLzvjl+wbHeZa8ojFGMtJu46pWFUOkCZGTi1injpLws9KIrPqBpuosgkYN 56yA== X-Gm-Message-State: AGi0PuZnqhBZvp24BYJc7AQU3BfdBKZcfOqHBUD13yBRGTfQCDmasz37 c8Xp0gG/9Edt2Hf3v4ghQtA= X-Received: by 2002:a17:90a:cc9:: with SMTP id 9mr3613012pjt.16.1587688238401; Thu, 23 Apr 2020 17:30:38 -0700 (PDT) Received: from js1304-desktop ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id x18sm3880817pfi.22.2020.04.23.17.30.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2020 17:30:37 -0700 (PDT) Date: Fri, 24 Apr 2020 09:30:32 +0900 From: Joonsoo Kim To: Johannes Weiner Cc: Alex Shi , Shakeel Butt , Hugh Dickins , Michal Hocko , "Kirill A. Shutemov" , Roman Gushchin , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 14/18] mm: memcontrol: prepare swap controller setup for integration Message-ID: <20200424003031.GD13929@js1304-desktop> References: <20200420221126.341272-1-hannes@cmpxchg.org> <20200420221126.341272-15-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200420221126.341272-15-hannes@cmpxchg.org> 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 On Mon, Apr 20, 2020 at 06:11:22PM -0400, Johannes Weiner wrote: > A few cleanups to streamline the swap controller setup: > > - Replace the do_swap_account flag with cgroup_memory_noswap. This > brings it in line with other functionality that is usually available > unless explicitly opted out of - nosocket, nokmem. > > - Remove the really_do_swap_account flag that stores the boot option > and is later used to switch the do_swap_account. It's not clear why > this indirection is/was necessary. Use do_swap_account directly. > > - Minor coding style polishing > > Signed-off-by: Johannes Weiner Reviewed-by: Joonsoo Kim