Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1080854pxu; Wed, 2 Dec 2020 10:30:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZM7EAhSD8xqb3hY+WVa01ImHHLFbPenQxbTkZWpxdJr+s3ysiH88DNsyok3FSHDd840EH X-Received: by 2002:a50:e688:: with SMTP id z8mr1267626edm.129.1606933828249; Wed, 02 Dec 2020 10:30:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606933828; cv=none; d=google.com; s=arc-20160816; b=PnkyEw1TO08WVI88E3HdyhPIt/cmo/SZTpdG6loVOU/smJXQzEBsq65pCLs8SIWRry wbyt9AG3Z3fnTOWqLik3gJ0ejg0SjkXZ2adl33KFe1SNdx1J1y61kRmpLF2y6C7j5k89 NQ3pyNspkh09HXB+2kyNi75DwyQuGQQMhMAJdR0/LmkqCG6/BNx/HSD3UGO3NAYkEIxJ 0yZuSC498Kc3AQCKof0wwEluoKlR83i6V6gj9ywG+1IUYv0tPvjOiGj2LXQPD20whvnv X3EoULOi4N64EVUXR8tnr79hKA+pA0qOzilF44tysktQO+DGVteSb+TCn0P2vT/TPDWh m8+g== 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=ydQfEfGfc0N0qiJ5oWHcbHhyRsLLnIu0b8pXAHWYB1A=; b=rIKtwqLTlQCx+WMvBfledD2J60lZxfriFaEGNQnyJ/1ljz2Xvugr85+Ns/aXqfkwK4 bIp6ytwPCBLlleIx0kYoFcCJwlNXhfGrXEQfBu1yFUxH1Pg7Mh6otYGxgezE/Ji7jPsB pfLCv14HF7ibxJV6q2lcm+U9ajQ0fPT9Axj9VJ5sy06uD/u9ka90fXSBXKqKhiFEqeGy 5kAcuOt7R6uXalM+3dt/kW0ZMMfUX8nyj++eyaXqQBDJ34H3Fqp7ygva+xIK1QWsquEq K+2uDo/1Y5ZL4O7ByBYiRbvQjdc1Sv5ziuP7wv2C7GrQIannxXhjj+mfRm9XhXrwkS8A C1HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MuYyPO4T; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si421822ejz.602.2020.12.02.10.30.04; Wed, 02 Dec 2020 10:30:28 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=MuYyPO4T; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389408AbgLBS2d (ORCPT + 99 others); Wed, 2 Dec 2020 13:28:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389384AbgLBS2c (ORCPT ); Wed, 2 Dec 2020 13:28:32 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1BDC0613D6; Wed, 2 Dec 2020 10:27:45 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id i2so5118046wrs.4; Wed, 02 Dec 2020 10:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ydQfEfGfc0N0qiJ5oWHcbHhyRsLLnIu0b8pXAHWYB1A=; b=MuYyPO4TnlK08+JUUwVy2q06Ru0NqVQXpM6eH1SAvjkUBTngufNo4mZlcodeyRFkhg WGhLsS35bhW63ROAEKx3ptsolAqnVC8dHbSL2C212z7VvTV0Lg6sdYchGOtYuvli5jBg zjMLVy9EHRfMA0CrnCwoBFlXGRZO6whNd4YWfL6nrJlcmxhbSagPHFKpdBErLqsgkoBh 4M+JjxWEeu7Ipd3ZCR+gghmyaUV6GRqlBOk/GJt9ZDyrt5rsDX0gPfiF2I1uwJDbDS3p GHDJ2uNL2/4RdnFBilVAN4PTCtHMitG+dLct30C4wktD2gSQwZVPGXVYK+v1tsUBW21h dsjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ydQfEfGfc0N0qiJ5oWHcbHhyRsLLnIu0b8pXAHWYB1A=; b=A+W4vrts6YZ8zTtPh4KgNO5P21MblawhZeA4Cxb0FZMA7s4rwuf7oPQm1wyhOCd/H6 jmCejzXxL04PnPzGoQi/l5zl+cZ2Yu4Nn7sN8ZrEObjaskzAjUb00RdFLz7F3VwKcG4y VKZ0gFlP3uQBh7lxFb8xTLCzlUdlS27wriZXW/qzz2Kmqn5hOAUhni2CAtyLQq4W1agU OXILPKd3PbqSDkdza7vIAcqSfLxdDt8zgUkOP0eNjl9yuIfAyciESUEDID+iiWbSuzEs Mk1SuzEKfNJh+wWlcOam/2CVY+ClyRyw6OgmebRMDJ1Zr7XqFi1iZ+OlUxWhUJ8uoDKp bonw== X-Gm-Message-State: AOAM530fvjGXXXkC3BHdb7C4bDKdocOXeP2igHC/s2kMy2Zzgx/L8co7 sAK+gLzoyykZHpwL1gV9Xsf+Kphka+OBiG2zbHE= X-Received: by 2002:adf:f602:: with SMTP id t2mr5212372wrp.40.1606933664584; Wed, 02 Dec 2020 10:27:44 -0800 (PST) MIME-Version: 1.0 References: <20201202094717.GX4077@smile.fi.intel.com> <20201202173701.GM4077@smile.fi.intel.com> In-Reply-To: <20201202173701.GM4077@smile.fi.intel.com> From: Yun Levi Date: Thu, 3 Dec 2020 03:27:33 +0900 Message-ID: Subject: To: Andy Shevchenko Cc: Yury Norov , Rasmus Villemoes , dushistov@mail.ru, Arnd Bergmann , Andrew Morton , "Gustavo A. R. Silva" , William Breathitt Gray , richard.weiyang@linux.alibaba.com, joseph.qi@linux.alibaba.com, skalluru@marvell.com, Josh Poimboeuf , Linux Kernel Mailing List , linux-arch@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 2:36 AM Andy Shevchenko wrote: > > On Wed, Dec 02, 2020 at 09:26:05AM -0800, Yury Norov wrote: > > On Wed, Dec 2, 2020 at 3:50 AM Yun Levi wrote: > > ... > > > I think this patch has some good catches. We definitely need to implement > > find_last_zero_bit(), as it is used by fs/ufs, and their local > > implementation is not optimal. > > Side note: speaking of performance, any plans to fix for_each_*_bit*() for > cases when the nbits is known to be <= BITS_PER_LONG? > > Now it makes an awful code generation (something like few hundred bytes of > code). > > -- > With Best Regards, > Andy Shevchenko > > > Side note: speaking of performance, any plans to fix for_each_*_bit*() for > cases when the nbits is known to be <= BITS_PER_LONG? Frankly Speaking, I don't have an idea in now..... Could you share your idea or wisdom? Thanks. Levi.