Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1652623iog; Tue, 14 Jun 2022 10:12:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vREBcF+ZVjgX+0FMjkEACCO+sECWfhHvYNjJkG1H0dqLZtyxkFjG2JGnCCtd9ATgpjhJba X-Received: by 2002:a05:6402:1851:b0:42d:c904:d73b with SMTP id v17-20020a056402185100b0042dc904d73bmr7258228edy.417.1655226720878; Tue, 14 Jun 2022 10:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655226720; cv=none; d=google.com; s=arc-20160816; b=o4/CTUL9N6PBDewBJNmQQNOkvKW2+UZzj6lwb1cqBxh/wGgthB19TECVgUXKcaJMXV B87ANJmjf5SSMqotPLMx41555+3flsvFyrw17g+goagsbKUSpCf/C0oK6RftbrhvsxYe yocvkUqMvp0hVKRTH+/7HfgOioIPNWqoa0/akY8+9WZhfPsaELlhrvW5Bz4EB9VsNy2s rjRktbXRzWy/lJCN4SEujVNPdBrmODR+8hk+vajwy1agXMsYoLxulzpnjNTgl4+rL5UJ azQZ4oAXCx0KP70OAA9Eit6FigvKTlgaok5/Ck9rVYlWRew1TW4u7f7Cec6AvViiFY3T FqhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=koFtYCobfnBiqq5CIKkno0UBtfADsb4OCPCbxyJtres=; b=EZfQQOkWMC8Z69vQfwRtpHqf6rviVvBEecHfFHXCQxnMAnm7J6C+9azlg3T3EjvUDk IuV9ecqUJv26SCGw8q8knH6ttLLO6mlC/zENu2M8oNFZSzAWo4XjwGhj6OUUqjIwW2/0 8yrI5S/Pi5B6qiLsJIoOJ8BBkbmx0Qbp8HUP2KUpZ22zV0X0w51N5F6cWRVu4sA+znTf 4zjh4OTCDoyENQDweSsjxXyoMi/q0BxDR0HpeaB9pKN5s6H2TBHl1XEnaO1NSfzWcFcN 32FxGzsv5EYkGI0CsvuBZp4wqgLmwYtm1MKila8/ezZ0dnccmmc1ishwgFgLlQ0RS0ly HTkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AdBFiVwI; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a05640211c700b0042bd2c39f07si13162970edw.596.2022.06.14.10.11.35; Tue, 14 Jun 2022 10:12:00 -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=@intel.com header.s=Intel header.b=AdBFiVwI; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344782AbiFNQv1 (ORCPT + 99 others); Tue, 14 Jun 2022 12:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351742AbiFNQu5 (ORCPT ); Tue, 14 Jun 2022 12:50:57 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0398446C96 for ; Tue, 14 Jun 2022 09:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655225441; x=1686761441; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=diBqcvD7f9wLYA2SL3XAvPR/G55mENPCpsDt0PlTF+M=; b=AdBFiVwI9Y6wQ6QzFhQI4t6HlL5ZIAh5akhNH6TmS8G3Z5mtcl/A/RCF RNaMun+F/d1rWfyyfOB8XiA79+tcoZDYbRWMPwIA82xqy4veBN5PuwJ5i EW3KbBkOtCiAVL5PtMlZ1b5OiioeUg6TY5KHbNJLar7cU50uRVU2xdxif VNh4PN8qalVmxGJbpAdKtn5pqICGoENGd09rZ33RN5SLgKJ4WIqiM8+NJ mQbVFoeth5ol6LFOFXtq7PJeLRZWRdXgTN2aXrhsC0AcrSTSXa5rwVx/S d3KD1Ht78IHNLU2wxJEW7Rt/REv7PjvE7rBGycB+MLSvgYuolQHbCrF5j Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="258515617" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="258515617" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 09:50:38 -0700 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="712543320" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 09:50:32 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1o19kL-000cbD-73; Tue, 14 Jun 2022 19:50:29 +0300 Date: Tue, 14 Jun 2022 19:50:28 +0300 From: Andy Shevchenko To: Yury Norov Cc: wang.yi59@zte.com.cn, Andrew Morton , linux-mm , linux@rasmusvillemoes.dk, linux-kernel@vger.kernel.org, xue.zhihong@zte.com.cn, wang.liang82@zte.com.cn, Liu.Jianjun3@zte.com.cn Subject: Re: [PATCH] bitmap: fix a unproper remap when mpol_rebind_nodemask() Message-ID: References: <202206141145339651323@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE 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, Jun 14, 2022 at 09:40:08AM -0700, Yury Norov wrote: > On Mon, Jun 13, 2022 at 8:45 PM wrote: > > > On Mon, Jun 13, 2022 at 4:31 AM Yi Wang wrote: ... > > > Anyways, as per name, bitmap_remap() is intended to change bit > > > positions, and it doesn't look wrong if it does so. Haven't read the discussion in full, but saw the function here and my 2 cents are the following: 1) if we don't have tests for bitmap_remap() / bitmap_bitremap(), we should; 2) these functions are used at least in one GPIO driver, so it would be nice to not touch them if they are not broken (see 1 above). -- With Best Regards, Andy Shevchenko