From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (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 B4467177 for ; Mon, 9 Aug 2021 16:17:02 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 479C460EB9; Mon, 9 Aug 2021 16:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628525822; bh=7bNCWOmmSl2og9wQXTzG/9IxTAKeX6wugcbzpZsamQ0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hZJKbNCE4hwgW+/mgyqgYeZokawCkWSAdgvDq63knI6jOXZfa1BKhybohH8nY75RF HQmRI3TdJ18B9ye7/MJ9XCrviia+yr4L2QM6QktQk1FepIY6+9fgho193pyXelis79 RHWvgRsJ3ZZ6cMAZbU2URg4sFk7r1piJfFCpDptCXelIhxX2/GyxtLNs2AqPYTW2ct KHmF7izpAFd6mtBltQzl3HgafDV/H4E6OdjFkuvsaddnaHUsL4jPALs23fKLMQZZOq WtP/g2ZK75k6QsSo9XBaXk0QX4nok8LIfzfBUFwK2/tCkodFCx53rModJbRktlFlgh NE3rEhkp0C/9Q== Date: Mon, 9 Aug 2021 09:17:01 -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 04/30] iomap: mark the iomap argument to iomap_inline_data const Message-ID: <20210809161701.GD3601443@magnolia> References: <20210809061244.1196573-1-hch@lst.de> <20210809061244.1196573-5-hch@lst.de> Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210809061244.1196573-5-hch@lst.de> On Mon, Aug 09, 2021 at 08:12:18AM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- > include/linux/iomap.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/iomap.h b/include/linux/iomap.h > index 8030483331d17f..560247130357b5 100644 > --- a/include/linux/iomap.h > +++ b/include/linux/iomap.h > @@ -99,7 +99,7 @@ static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos) > /* > * Returns the inline data pointer for logical offset @pos. > */ > -static inline void *iomap_inline_data(struct iomap *iomap, loff_t pos) > +static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) > { > return iomap->inline_data + pos - iomap->offset; > } > -- > 2.30.2 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darrick J. Wong Date: Mon, 9 Aug 2021 09:17:01 -0700 Subject: [Cluster-devel] [PATCH 04/30] iomap: mark the iomap argument to iomap_inline_data const In-Reply-To: <20210809061244.1196573-5-hch@lst.de> References: <20210809061244.1196573-1-hch@lst.de> <20210809061244.1196573-5-hch@lst.de> Message-ID: <20210809161701.GD3601443@magnolia> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Mon, Aug 09, 2021 at 08:12:18AM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- > include/linux/iomap.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/iomap.h b/include/linux/iomap.h > index 8030483331d17f..560247130357b5 100644 > --- a/include/linux/iomap.h > +++ b/include/linux/iomap.h > @@ -99,7 +99,7 @@ static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos) > /* > * Returns the inline data pointer for logical offset @pos. > */ > -static inline void *iomap_inline_data(struct iomap *iomap, loff_t pos) > +static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) > { > return iomap->inline_data + pos - iomap->offset; > } > -- > 2.30.2 >