Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp350604imn; Wed, 3 Aug 2022 06:37:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR7V2GQrwH6BqpeuM9hJZ5z9zUwddfZ0487LWg7EjqLPfiTa9MRBnAlAkK6b9FkqQAv8TKWd X-Received: by 2002:a05:6a00:cd1:b0:52e:29e7:1c15 with SMTP id b17-20020a056a000cd100b0052e29e71c15mr3195684pfv.19.1659533831949; Wed, 03 Aug 2022 06:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659533831; cv=none; d=google.com; s=arc-20160816; b=ILGUNRlkhwqnufxYdmNDEVCjIujjp7B9Oks1YFzhiD0/cJLcsxZy9bJiyxs94c5qGE yPA12TgtFlYCry88G4jBPct2newWnVEKg78MwSEkm9dEq1QzWtzdkdPh4Hi36DuZ0M+g 5Rzj1vMBgiznnrLMtPmIEO2teMZZV0Sv4uqM9VRJWSSiWusCriZEqzXLjU+TN97CzUsv a8wPAUwco3ijsHkk940sDZXJ534dSB6eUO1bL4Xvz1A4jFMU8ono/1dVWCoJz/LWDqWh Mjq6sTuSAspmgQf8W9G2iwIeMqHIu5b0dgvWgeTU1mrtytj+AHuBnUXqJjSdwZk0Vk3u nx1Q== 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=FdXtbTbAlquuEbPLJVuxdZ+BYt1g8PCyLrizW86wNz4=; b=cI5OlDiMtRApU1mqxZ4Mvm/agD5+EMntRg0+BkxGSqEjpInPQVcH+RAy5psdjGOXVX Kodea6iK2TqMP9Y/Ny0GoSenEw3F1e7fXc7pcjm+2uSJ2aTSqYlS/Vl2AADj/uaEz09g Nz3s7m7v6ZzdeGuY7qjYg6jDxCmpgcj1PPWKElOZk/vn1Ny9SYtFq3eAsmwTX1ZsREUQ plzRyKKJlxWD0cnQOQbV4g/KfiClrw+fCAo8HY0ZeQsf0EcaLusu7WTFFJMGmawx/D0G rTR64R5ysFXWpCsJNXCijG7ECKgkitsSXplctIRiqJ+Quct+9EHUj+aR1tcD0AWTgqDr qY+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KGj11myT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a634e07000000b00419b2729e7csi3921962pgb.27.2022.08.03.06.36.57; Wed, 03 Aug 2022 06:37:11 -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=@suse.com header.s=susede1 header.b=KGj11myT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237776AbiHCNV0 (ORCPT + 99 others); Wed, 3 Aug 2022 09:21:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236292AbiHCNVZ (ORCPT ); Wed, 3 Aug 2022 09:21:25 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 708B5193E3 for ; Wed, 3 Aug 2022 06:21:24 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1911F37B77; Wed, 3 Aug 2022 13:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1659532883; 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=FdXtbTbAlquuEbPLJVuxdZ+BYt1g8PCyLrizW86wNz4=; b=KGj11myTo2pD1rq3sgsmCbuXzyVFUFNrsHMPtvFpv6jtBsFvqlpG/lPmQtBm8TmuhSQ0Dh E87kA5/WO7CwqhWFvTs6YiUjiB4wG1fIQoCTMULofdQfQv3OmCT0bGqwxyz8ib8NNJrldD QWqQpB/GE7PIrY21+kIH0Tyfolg+Ceo= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id EA90113A94; Wed, 3 Aug 2022 13:21:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iKFWNlJ26mLgegAAMHmgww (envelope-from ); Wed, 03 Aug 2022 13:21:22 +0000 Date: Wed, 3 Aug 2022 15:21:22 +0200 From: Michal Hocko To: Feng Tang Cc: Muchun Song , "akpm@linux-foundation.org" , "bwidawsk@kernel.org" , "dave.hansen@linux.intel.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Mike Kravetz Subject: Re: [PATCH] mm: mempolicy: fix policy_nodemask() for MPOL_PREFERRED_MANY case Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Thu 04-08-22 05:08:34, Feng Tang wrote: [...] > Do we still need the other nodemask API I proposed earlier which has > no parameter of gfp_flag, and used for __nr_hugepages_store_common? I would touch as little code as possible. -- Michal Hocko SUSE Labs