From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B36CC07E9B for ; Mon, 19 Jul 2021 17:38:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D96B610FB for ; Mon, 19 Jul 2021 17:38:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353785AbhGSQ6D (ORCPT ); Mon, 19 Jul 2021 12:58:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:47698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354333AbhGSQyz (ORCPT ); Mon, 19 Jul 2021 12:54:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0EC826113A; Mon, 19 Jul 2021 17:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626716131; bh=ctaebXMBllXiQLQACsNI6rLNkFdU4WNfaBVmh0Lu2H8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lGARtMy7qP392pvtKMaN9slO8tp7u3jU1T7FtRmizgaxllz3pA2eIVTAspsTS3MDL zAzebTFuFR1CNRPPmMnd+oXz5FBMTdrc+7RC2dzYQvdmgOZCyf6uDhTh+gjtXjPaDo STutVxGkpuwfYoN9IaVsM2tLMcKeeISmrwbLp7+q+SItqxbEQoeKZOfzQqajbkudKN yT1CuH5w5PqGPZ6FUs7pgQeFSuz645p8GsjhKF7msocIQUIPqYhJovDU8mIwFDDKTj dVCczixBsbnp0oeUzFT0dT+w84lhxNLH5BuMh5psLoOCW0LhOcbuP4HSRN9sQJRvVV qeGaZW3/NuVPw== Date: Mon, 19 Jul 2021 10:35:30 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Dan Williams , Matthew Wilcox , Andreas Gruenbacher , Shiyang Ruan , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, nvdimm@lists.linux.dev, cluster-devel@redhat.com Subject: Re: [PATCH 05/27] fsdax: mark the iomap argument to dax_iomap_sector as const Message-ID: <20210719173530.GE22357@magnolia> References: <20210719103520.495450-1-hch@lst.de> <20210719103520.495450-6-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210719103520.495450-6-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Mon, Jul 19, 2021 at 12:34:58PM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig LGTM Reviewed-by: Darrick J. Wong --D > --- > fs/dax.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/dax.c b/fs/dax.c > index da41f9363568e0..4d63040fd71f56 100644 > --- a/fs/dax.c > +++ b/fs/dax.c > @@ -1005,7 +1005,7 @@ int dax_writeback_mapping_range(struct address_space *mapping, > } > EXPORT_SYMBOL_GPL(dax_writeback_mapping_range); > > -static sector_t dax_iomap_sector(struct iomap *iomap, loff_t pos) > +static sector_t dax_iomap_sector(const struct iomap *iomap, loff_t pos) > { > return (iomap->addr + (pos & PAGE_MASK) - iomap->offset) >> 9; > } > -- > 2.30.2 >