Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4725149ioa; Wed, 27 Apr 2022 09:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypHG8eIFkS7JFROmFEea9sKZkHgGNqjzOtdl7BVrt3YMhNfTz4i3sRN65anZ8f7vQYKFnY X-Received: by 2002:a65:4c8e:0:b0:3aa:24bf:9e63 with SMTP id m14-20020a654c8e000000b003aa24bf9e63mr24986503pgt.592.1651077841818; Wed, 27 Apr 2022 09:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651077841; cv=none; d=google.com; s=arc-20160816; b=gdsUFQHSW71mmV7nQ3Apn+QEND9n8BP6hJw7sp5wz9Un9QaAuQ0O5vH2+7qcd4UI9X Yh1v2bgsPvSJBXU/uZPBbgM8XA2OClumZigTOzYe79dXZN5ZyXELngYfGQ6TQ+kPwm1y pzQCDWML3vflNEMqsodWFrtYCR54qEiKGBoMRqnxr+cbuv8O4Rw8m0CoHIO/cg8WLR/D 2iC6ENrybrfueEwtZcrJxqCvCF+jxDvISQddm1zktRrx3gRnPWT/O7IslK0O3fFSSJ4w ibkW0ymO6yjJE6WC6Mr7tyBsOseG+CelA7c5G3oElmPidMCnklJkZKu2xYPqLlq5fwjp 1Ntg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=hQoXPJPquqTb2kGaaKxCiuhimB4ekAN7xqBn0QNyaIQ=; b=ZlBXiy0w2erzUjAB3HeVOkQzlWtIHqo57XpAJLqT2yMQkoGlrHkAbOUjy1VJVLMdvK 7oAgvDRdVUHplXy94qRDuoBG8WV6EvQpeOdWD0U+TzdEX3x+1fgNTj7ahdIip3Dh4xU+ u4YlGKOHq12xbSDORKKJ832jJRWsWW2kUeFR+6OQgtcLYiN3/Cn1Z6kYwaNJeSfvbmEt Fp1t5C/zR9VZyQVk5C89pS9thYcjyy2ykM4Figftu9mpljsVq3HM+zaf1JuL3ihRjslA 45Lz2gL6qWkt6wSZBAnNdXfP2/yD5eGbQfEITFQdVfT2hK8VZcC6iapSDbHQSQDBfWrn CK0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=UVxvYoMf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t38-20020a634466000000b003ab87166cc7si1901452pgk.749.2022.04.27.09.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 09:44:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=UVxvYoMf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7112437A26; Wed, 27 Apr 2022 09:14:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241870AbiD0QQa (ORCPT + 99 others); Wed, 27 Apr 2022 12:16:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241771AbiD0QNP (ORCPT ); Wed, 27 Apr 2022 12:13:15 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 483D448387C; Wed, 27 Apr 2022 09:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=hQoXPJPquqTb2kGaaKxCiuhimB4ekAN7xqBn0QNyaIQ=; b=UVxvYoMfT1vstULD4aRMpZehu9 RUBZ7/wz2W723JIdfjGXwMMJAI9xgxn7ytl+ozmyWnrvUO6BfKQOT0N6FrUqfmHBROUoWp0VjK3ws aB5ztde2c7VPF4WvEp/UhnVdawFz9KyJ0u54Z0YjnlQOObmCN293Ez7rYgfLvqC5EIr4QcOpIc48p CqA3tFX6S0dg0+AlpjB90XZvdB/UrvEN/FRQBp97GfOoG2kkzTI/ZBjWeDjbDMOU00Mwkaz/UATmh jAdwCqoRiE/6gpFdRRvlqi+2LLpcmu6kuP/+UgzddB3Yl9U2+4j3cKi0wEvIpxkUtJYopy03PJXsU CdQHwv0A==; Received: from s0106ac1f6bb1ecac.cg.shawcable.net ([70.73.163.230] helo=[192.168.11.155]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1njkCl-000K8X-FT; Wed, 27 Apr 2022 10:07:52 -0600 Message-ID: Date: Wed, 27 Apr 2022 10:07:48 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US To: Guoqing Jiang , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu Cc: Christoph Hellwig , Stephen Bates , Martin Oliveira , David Sloan , Christoph Hellwig References: <20220420195425.34911-1-logang@deltatee.com> <20220420195425.34911-2-logang@deltatee.com> <2a6d5554-4f71-6476-6d14-031da52005f5@linux.dev> From: Logan Gunthorpe In-Reply-To: <2a6d5554-4f71-6476-6d14-031da52005f5@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 70.73.163.230 X-SA-Exim-Rcpt-To: guoqing.jiang@linux.dev, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, hch@infradead.org, sbates@raithlin.com, Martin.Oliveira@eideticom.com, David.Sloan@eideticom.com, hch@lst.de X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 Subject: Re: [PATCH v2 01/12] md/raid5: Factor out ahead_of_reshape() function X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-04-26 19:28, Guoqing Jiang wrote: >>   +static bool ahead_of_reshape(struct mddev *mddev, sector_t sector, >> +                 sector_t reshape_sector) >> +{ >> +    if (mddev->reshape_backwards) >> +        return sector < reshape_sector; >> +    else >> +        return sector >= reshape_sector; >> +} > > I think it can be an inline function. Marking static functions in C files as inline is not recommended. GCC will inline it, if it is appropriate. https://yarchive.net/comp/linux/inline.html https://www.kernel.org/doc/local/inline.html Logan