From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F8ABC6377A for ; Wed, 21 Jul 2021 20:51:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C25D61009 for ; Wed, 21 Jul 2021 20:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbhGUUKY (ORCPT ); Wed, 21 Jul 2021 16:10:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:59058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbhGUUKW (ORCPT ); Wed, 21 Jul 2021 16:10:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F76460FEA; Wed, 21 Jul 2021 20:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1626900658; bh=iPgc6ODsz4TxG0bpAFE63PzUmM0U3DXOBMd9a7IulMc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tuC7TNZ5RmKRaB07c88XWWZDEI4hetYXiE0Qb7/LwJPcIZEQjmJpI1w/Y8kgHJjNi 5wYMrf3nlLL4i22bJZXRHDfgvSGWmqflPgI7CFVY+fkPKsGB+P8IMp3/oSU1Qt2pP1 SqaL65gU1IP7oBK0HyD9zjPysNWnP/OqPWo9pZ+A= Date: Wed, 21 Jul 2021 13:50:56 -0700 From: Andrew Morton To: Suren Baghdasaryan Cc: David Hildenbrand , Michal Hocko , Michal Hocko , David Rientjes , Matthew Wilcox , Johannes Weiner , Roman Gushchin , Rik van Riel , Minchan Kim , Christian Brauner , Christoph Hellwig , Oleg Nesterov , Jann Horn , Shakeel Butt , Andy Lutomirski , Christian Brauner , Florian Weimer , Jan Engelhardt , Tim Murray , Linux API , linux-mm , LKML , kernel-team Subject: Re: [PATCH v2 1/3] mm, oom: move task_will_free_mem up in the file to be used in process_mrelease Message-Id: <20210721135056.84d12dd49c07adff7b0beffb@linux-foundation.org> In-Reply-To: References: <20210718214134.2619099-1-surenb@google.com> <7eb17da6-03a6-5eaf-16e6-97b53ba163d8@redhat.com> <20210720160707.2332738708948f7d865d67c1@linux-foundation.org> <0ee6775b-589c-3243-1c01-aafad5eecb73@redhat.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Jul 2021 13:19:35 -0700 Suren Baghdasaryan wrote: > > > This would not require moving other functions. > > > Would that be better than the current approach or the forward declaration? > > > > IMHO that could be an easy, possible alternative. > > Andrew, others? Should I follow this path instead? Whatever you prefer ;)