Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1214331lqt; Tue, 19 Mar 2024 17:11:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV17BoJs8vhTJIymLCoifVf1kCdMIrjDA4y2WkrCeagJJC4sqcbrjTx4w9l8SPURZusNG2Qdot0Usiqdv689GgkwMoIkhYKeqaDxGIDng== X-Google-Smtp-Source: AGHT+IHp8i+L1sK+ybCRhfi2zt2z0oCzkRHbg9TXswHYX+ciVkEhbxcr1Z/ulk0ZW96RUgZ0Tezu X-Received: by 2002:ac8:7d8e:0:b0:430:bd2f:bc88 with SMTP id c14-20020ac87d8e000000b00430bd2fbc88mr15038896qtd.30.1710893489072; Tue, 19 Mar 2024 17:11:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710893489; cv=pass; d=google.com; s=arc-20160816; b=bU5t9qst3fbjE3EKcyR5H/k0F2WTggSmwEwfDdZ/GinDCKkE1+q4F/hqfmgoM6x+8x nS29w/yrSgCcGbqru1herZ2PqXfGWEdBHH0Jen9kr9qQf36tDoNMz4+56PqjrgainCsW O5q6FSauMI1Og7in3tF7zT50Xwo9EhVFvgUtzRnISla/dtZhSX/p8zIzNvwXZC5oC7FU PQmFVmoIj7SfkY6DcBSCEYXFXHq7q14BfGrLImqi2DAx829q39SE11cpciIxOS0YVjqV UXl/jDLLDPeTXZOmnyrBfiYmlNOtxO6eL3ccstBlnki3oznNO0vA8b5sl27yruND9cix knfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eJ6eNnKP0QQ+UFFnJPSmQPHRB07lfb47KMCICxJUdHk=; fh=ZpK2BA/JkmeaJ2rKQyc5Np9nnD5JITGkhkNo7DhWPRU=; b=ne55oPi2EpVK4l/lLht5pwQptkyBsGvhTCmtXtjSzeu2Gr4u5NF+lVD4Gh5JbjKnbX Tc8lcrY3yanX58j7lAJy7d3IBSpkmHdHABg7HKD39oTR53f0O3N/hccqYEPrFI9/oFpV Kwnhgbh1ghAJj7jCXhitjPhTP5OF2Z3MQjcwgG6CqxFLmAeIZKv0MhPpfjxcrnxtQJpH BjalUMV6EyK2WB8tmQRIy9Fb2Eq+Wp0Yyni3pHM0WqlWgdOvjqeqJxLLDOOCLH1H11JT 2ptSV49crYPDTzHgg8VJZXYrvp2DKun5d0AZg/ZTLzYeuNowbGsY4Dn6Ta6M1OpINsXr YMTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1d9EvFPF; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-108216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108216-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cj15-20020a05622a258f00b00430b7f82191si10089054qtb.444.2024.03.19.17.11.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 17:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1d9EvFPF; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-108216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108216-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DBEE31C226C6 for ; Tue, 19 Mar 2024 22:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01DF56026F; Tue, 19 Mar 2024 22:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="1d9EvFPF" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9E845FEF5; Tue, 19 Mar 2024 22:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710888901; cv=none; b=VOPl4WzPy9uSnea/PgCsh20es8OuPF3i/hjplusLTg36aMX+JFV0uE2762I68noHhLePLAbq0zrl9IGs3NUqn7cXyWsL4nkmDaZBX97zXrYkVIdwEnxo+dcC0m4p2smVv4w6K+cW9Du3vZXHDPKVJ3CycLxzOGvPEvdRTXXzLLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710888901; c=relaxed/simple; bh=r5Tu6X6VL9KipsoIQiuF55AUNOvOjQfhfCgiDN+WS38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FwPpucCLIeFiiug4bIoXoh1Y0w+2NEQe3u8gVKUOiQgHMmBMHqqXQfQpVoJaiWnnQoCyxk0FOXOCzn6Iwnnt/MTkoRL72h98xX5WCieYLaY2AuXSyIaGgeECAgo9Cf2SUExcvRaU3jdQaTP8JdtXRbHrfXfOhskXRyqUGwWH8uM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=1d9EvFPF; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eJ6eNnKP0QQ+UFFnJPSmQPHRB07lfb47KMCICxJUdHk=; b=1d9EvFPFK4lijQPAimqDHzWTaB ZHiaqJeAO2D+rzCqeKEDeoKLxeXrVy/fdSQHX61LeEraL4uUQJi5CTtp7Bje5XCOEb3pnNcUGTaFQ TWuIyad9gaOakhSPGQq6aU2gmQqnI9q1+YW6rnRCuT3jJKuwdLJIwjffxs07c9c/SELKqlpwjVhHz LHBRtjiDUIRunKYvfLvLqJHjgW0bc165sgCVRbMOBhxbGY+s/fmYFkWTkzR0T8YO66YS1epw4LIyE R6vbYSzel1OY+b+JmC0nJPzlCIxAraklCWIjbDkGXzurpGnvIPlqWFJy2/Vxvfbpavc/od+rKqhdF jMdT9pyQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmiMD-0000000EWxf-3fIM; Tue, 19 Mar 2024 22:54:57 +0000 Date: Tue, 19 Mar 2024 15:54:57 -0700 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Zhang Yi , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org, brauner@kernel.org, david@fromorbit.com, tytso@mit.edu, jack@suse.cz, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com Subject: Re: [PATCH v3 3/9] xfs: make xfs_bmapi_convert_delalloc() to allocate the target offset Message-ID: References: <20240319011102.2929635-1-yi.zhang@huaweicloud.com> <20240319011102.2929635-4-yi.zhang@huaweicloud.com> <20240319204552.GG1927156@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240319204552.GG1927156@frogsfrogsfrogs> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html > > -xfs_bmapi_convert_delalloc( > > +static int > > static inline? I'd just leave that to the compiler, no need to second guess all the decisions. > Double underscore prefixes read to me like "do this without grabbing > a lock or a resource", not just one step in a loop. > > Would you mind changing it to xfs_bmapi_convert_one_delalloc() ? > Then the callsite looks like: Fine with me.