Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3137033pxb; Tue, 20 Apr 2021 01:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFNiNOwsi4iLPzbXnJf+1WFYMZYrwJi2GdPQRbYH/3QMO6dAzj82Hw8IKpLmPkQ7ZmE+XK X-Received: by 2002:a17:906:eb49:: with SMTP id mc9mr26169172ejb.67.1618906039280; Tue, 20 Apr 2021 01:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618906039; cv=none; d=google.com; s=arc-20160816; b=SiD0rpheqCuInIcGblbv+XFy2/6zcLe1HibzFdmVQqF62zTroldRw7AW0B3KEkGlns 1qoT6V/zZR7LPzomqDMgvAaxHwCEJKOaFUcaQ21XcmFu+HaDFkbDlwn85RIFmuh9i+64 yM7ERoIF7/s69u55L7zvSqLGEcU/gwJ7exeGaMfdZEh5sbCxnDXfhDnahjh19UFCB8GO Z86eHA7PPXZreIuPtZlve7wLCGrl9rUpOWtE/9h8Imu+s7acfO47V9j4pMNsIDFmMpsn a/+2+9XKq3pizzpT7nsTRm6t8a3NJJgOA077vl3dFDsk/WG2kPIRUQk3v401ZGw/uUZr vr/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QI+jU+hQq4MG4fnEZIyp1J+yoW7z3R2nnTri1hPIMb0=; b=Wi914P2H3VDyhTXE2fJkCUII5mn0SYJTcPfiut81ECnSBI5VHtJlooiw/JcVDtHqE+ Luk7GvlK4Npd5mvM5vmbzCKcfKZb22azgV32whsRrCaYQxpgK3sTJ67OMGYlxBxITt0l QrxKQAsNcq0ICl/A4O1Jth1sAJSPyaOwUh5TSEHRnAHbveVWPWCdVGvopqJkhin8QV5M 9ElnW3wgbFBpALWyDegwBrt2KKSiq2yfyJCeR1f39IqFWxJts+u/lsiyOFf4DyGyRWeI mGg9rmv5I6SQxiWeMcJ8DA+9uXwKMPr8twAYBl/xUY98GYNyJ6g90MY4qgYGGlkraOQt ummg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=LDwx87FW; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si3668682edr.477.2021.04.20.01.06.55; Tue, 20 Apr 2021 01:07:19 -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=@suse.com header.s=susede1 header.b=LDwx87FW; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbhDTIG3 (ORCPT + 99 others); Tue, 20 Apr 2021 04:06:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:55558 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbhDTIG2 (ORCPT ); Tue, 20 Apr 2021 04:06:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1618905956; h=from:from:reply-to: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=QI+jU+hQq4MG4fnEZIyp1J+yoW7z3R2nnTri1hPIMb0=; b=LDwx87FWadOHK1RH2RC0IFbccjafULornqRJg3LIpFf66O+6qZ/1S6Teqsh1nd5G8PYKYe SX0GjTu6vo5dK98WipgCgvNj2KpHbjFV+9pgpliHBfHGvIuGWDbsJtuWuQ1Ok7NtjAxamm IPOMk7r5giucoElK3B7f8YLpbFMIyko= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 19398B23F; Tue, 20 Apr 2021 08:05:56 +0000 (UTC) Date: Tue, 20 Apr 2021 10:05:55 +0200 From: Michal Hocko To: Johannes Weiner Cc: Waiman Long , Vladimir Davydov , Andrew Morton , Tejun Heo , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , Roman Gushchin , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt , Muchun Song , Alex Shi , Chris Down , Yafang Shao , Wei Yang , Masayoshi Mizuma , Xing Zhengjun , Matthew Wilcox Subject: Re: [PATCH v4 1/5] mm/memcg: Move mod_objcg_state() to memcontrol.c Message-ID: References: <20210419000032.5432-1-longman@redhat.com> <20210419000032.5432-2-longman@redhat.com> <140444ea-14e7-b305-910f-f23fafe45488@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 19-04-21 17:11:37, Johannes Weiner wrote: > On Mon, Apr 19, 2021 at 01:26:29PM -0400, Waiman Long wrote: [...] > - the soft limit tree and soft limit reclaim > > - the threshold and oom event notification stuff > > - the charge moving code > > - remaining v1 interface files, as well as their helper functions > > From a quick scan, this adds up to ~2,500 lines of old code with no > actual dependencies from the common code or from v2, and which could > be moved out of the way without disrupting ongoing development much. Moving those into its own file makes sense to me as well. If the code is not conditional (e.g. like swap accounting and some others) then moving it would make memecontrol.c easier to navigate through. -- Michal Hocko SUSE Labs