From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:59018 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728058AbeJ3WMH (ORCPT ); Tue, 30 Oct 2018 18:12:07 -0400 From: Carlos Maiolino To: linux-fsdevel@vger.kernel.org Cc: sandeen@redhat.com, hch@lst.de, david@fromorbit.com, darrick.wong@oracle.com Subject: [PATCH 04/20] iomap: Rename fiemap_ctx to fiemap_iomap_ctx Date: Tue, 30 Oct 2018 14:18:07 +0100 Message-Id: <20181030131823.29040-5-cmaiolino@redhat.com> In-Reply-To: <20181030131823.29040-1-cmaiolino@redhat.com> References: <20181030131823.29040-1-cmaiolino@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: fiemap_ctx structure is local to iomap code, so, rename it to match its scope. A new structure named fiemap_ctx will be added which will be globally available as part of the fiemap kernel API. Signed-off-by: Carlos Maiolino --- fs/iomap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/iomap.c b/fs/iomap.c index f1cb8ce5bc54..838b405a9037 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -1098,7 +1098,7 @@ vm_fault_t iomap_page_mkwrite(struct vm_fault *vmf, const struct iomap_ops *ops) } EXPORT_SYMBOL_GPL(iomap_page_mkwrite); -struct fiemap_ctx { +struct fiemap_iomap_ctx { struct fiemap_extent_info *fi; struct iomap prev; }; @@ -1137,7 +1137,7 @@ static loff_t iomap_fiemap_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap) { - struct fiemap_ctx *ctx = data; + struct fiemap_iomap_ctx *ctx = data; loff_t ret = length; if (iomap->type == IOMAP_HOLE) @@ -1158,7 +1158,7 @@ iomap_fiemap_actor(struct inode *inode, loff_t pos, loff_t length, void *data, int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, loff_t start, loff_t len, const struct iomap_ops *ops) { - struct fiemap_ctx ctx; + struct fiemap_iomap_ctx ctx; loff_t ret; memset(&ctx, 0, sizeof(ctx)); -- 2.17.1