Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2842651iob; Mon, 16 May 2022 07:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVNWSMFVmgZa+dYNeuG/A0wN1KGWmKO3DXuPTT0Y6nRdH5yy7NpyQzllM0BEjucwLthZJg X-Received: by 2002:a17:906:b7d6:b0:6fe:40aa:f8bc with SMTP id fy22-20020a170906b7d600b006fe40aaf8bcmr3990103ejb.132.1652711025019; Mon, 16 May 2022 07:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652711025; cv=none; d=google.com; s=arc-20160816; b=yhZ/bvHjsTr0VNpo2ig/sXJKpvPxA5+J/mTAe7HPZtdoaaUJkfGsPZ4JUnYQ5UwWBQ isiVAEB4tLOh6XadpSXBoDjQYoLSELzFgZnXS5EB4KKLr1r7jd7ZNM9+GuRbsjVGj4sO AtnG/8PIUAWbpAN4dQxv7BAt7UmMxDurEYY0JledlPR3byY2Hap9dWEIOXEW4k/vUt8u iUqDmI50p8mcCHMl9TJfIIR9HoSHyTaOLyXbtNzJqoVSTqLd0ioC+23uvM2E/Jauu+qH Xsb87xKXDDLqMZBFHXiKZIaI8qJNvHywYLtvJEIY46TUZ8nswvcIexRJ3x5jJqV4/2/R 5yfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Qs6KzmNvqi948FGwp/fLhqN7zczHoIBbeoB+SvqJ72Y=; b=OKgKAdzGEeNvF1DAx96avDpHlIsrhXXeKjBABJhj6/OghKtur5V6bGFJjfOpxhB1GE 1B+xHeiWLNcwXkEtB7Y5XV+qZrRlyDzFw1woE6OwCibalIYYqk2ARvil8PqfbP8xilOh XBH+RDxnPtU+Ht9lTYGFc92TyGtO6yLaEFqBeYk29P+7g3ni4yOCa6yRM4QDEDrOFEL4 TW81t7LMRJ7fsFkG4VaM9mIDSDKTRCLydKnBwzeLkTV+FSygUE4g3XU9GePk6cpbUHkC T1+Gy0YiQbY2zN7U9FdTYG69QoeIp9XawHKSFezu1U3TQHStfSk6UZIM0bti07gPtuIb BLGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BCnP2xhE; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz10-20020a1709077d8a00b006e893bdaefesi10114780ejc.884.2022.05.16.07.23.16; Mon, 16 May 2022 07:23:45 -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=@google.com header.s=20210112 header.b=BCnP2xhE; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239477AbiEPCqi (ORCPT + 99 others); Sun, 15 May 2022 22:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbiEPCqg (ORCPT ); Sun, 15 May 2022 22:46:36 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 666301402A for ; Sun, 15 May 2022 19:46:35 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id x74so12082912ybe.4 for ; Sun, 15 May 2022 19:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qs6KzmNvqi948FGwp/fLhqN7zczHoIBbeoB+SvqJ72Y=; b=BCnP2xhE6Ob/d+gt4ZTBLwa0Dtcr/c2wsmjwxm8K77+x6RvJkK0jJAT/5eUnmAAQT/ qJAd1Vy7qGoEizlwBmUqFDispatPNG9bMJqKp0AsYWSCLBiqJxA4jyuPz5z4IjxlMCCu DfLpoMaTJe+AwZvcPAMOEVO7r0++WXpzd9hDTQjdQ1BRVnFJsz+ZzJoTJrt4atjSn4Hc O6YOAj3+BfEstQEo3vF/2NcL6Vp+JA4gz0ih6VlvyZ2yK8p/jW+xxEsJlhkvQ25FORLt /nJhTCB5M80sZVl4y1VmSZIE+iM115E5AvyleTP0kkNsZhAy9jR/AUTnrCMdjvb25BDY fDSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qs6KzmNvqi948FGwp/fLhqN7zczHoIBbeoB+SvqJ72Y=; b=KtLY8pa3f5n+qYpEiWiOzRujGoPXh/pQ1NZNwTVJ1r82kCv1KEuemV1qkYIOJkDH3t wc8B6l14rb+uA4GNKyTOAe4dX2QfgL4Lkk3MJygeoiLEvlGVHwX4akexYsUkgDnYKL2G glAjLQicovg+aJFGdH0/XGE0HP2EN0XMy3cvKvzGL64srrU7C/OAK5zcRouH5FGTwItC 2Jov3APRLVRmss4iVgJCASZ5sUn9NIPvGKVcY9nlTVQXDhK98msCcSVP9e5ffbOCGSds zlv+JjwGltHRWuMccLLZs4a6xNAcuwmWeylZtrIsFkPTkETn/qIazSz463fb4j+AhEKb dEtQ== X-Gm-Message-State: AOAM532iUSZo39vaBRpIGN0h0XOvIQM9TzpOH478zfQYD29uBwHWItpz WxC+6bATFidITVdYnxvGgwcloqbKU4LXiHYuCjX9TQ== X-Received: by 2002:a5b:30d:0:b0:64b:4193:7911 with SMTP id j13-20020a5b030d000000b0064b41937911mr14912687ybp.509.1652669194393; Sun, 15 May 2022 19:46:34 -0700 (PDT) MIME-Version: 1.0 References: <20220510030014.3842475-1-surenb@google.com> <20220510030014.3842475-3-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Sun, 15 May 2022 19:46:23 -0700 Message-ID: Subject: Re: [PATCH 3/3] mm: delete unused MMF_OOM_VICTIM flag To: Michal Hocko Cc: Andrew Morton , David Rientjes , Matthew Wilcox , Johannes Weiner , Roman Gushchin , Minchan Kim , "Kirill A. Shutemov" , Andrea Arcangeli , Christian Brauner , Christoph Hellwig , Oleg Nesterov , David Hildenbrand , Jann Horn , Shakeel Butt , Peter Xu , John Hubbard , shuah@kernel.org, LKML , linux-mm , linux-kselftest@vger.kernel.org, kernel-team Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Tue, May 10, 2022 at 6:08 AM Michal Hocko wrote: > > On Mon 09-05-22 20:00:14, Suren Baghdasaryan wrote: > > With the last usage of MMF_OOM_VICTIM in exit_mmap gone, this flag is > > now unused and can be removed. > > > > Signed-off-by: Suren Baghdasaryan > > LGTM > Acked-by: Michal Hocko > > One question below > [...] > > diff --git a/include/linux/sched/coredump.h b/include/linux/sched/coredump.h > > index 4d9e3a656875..746f6cb07a20 100644 > > --- a/include/linux/sched/coredump.h > > +++ b/include/linux/sched/coredump.h > > @@ -70,7 +70,6 @@ static inline int get_dumpable(struct mm_struct *mm) > > #define MMF_UNSTABLE 22 /* mm is unstable for copy_from_user */ > > #define MMF_HUGE_ZERO_PAGE 23 /* mm has ever used the global huge zero page */ > > #define MMF_DISABLE_THP 24 /* disable THP for all VMAs */ > > -#define MMF_OOM_VICTIM 25 /* mm is the oom victim */ > > #define MMF_OOM_REAP_QUEUED 26 /* mm was queued for oom_reaper */ > > #define MMF_MULTIPROCESS 27 /* mm is shared between processes */ > > Have you consider renumbering the follow up flags so that we do not have > holes in there. Nothing really important but it can confuse somebody in > the future. Missed this note until now. I will renumber the constants to avoid confusion. Thanks, Suren. > > -- > Michal Hocko > SUSE Labs