diff mbox series

[04/20] iomap: Rename fiemap_ctx to fiemap_iomap_ctx

Message ID 20181030131823.29040-5-cmaiolino@redhat.com (mailing list archive)
State New, archived
Headers show
Series New ->fiemap infrastructure and ->bmap removal | expand

Commit Message

Carlos Maiolino Oct. 30, 2018, 1:18 p.m. UTC
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 <cmaiolino@redhat.com>
---
 fs/iomap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Christoph Hellwig Nov. 16, 2018, 3:44 p.m. UTC | #1
On Tue, Oct 30, 2018 at 02:18:07PM +0100, Carlos Maiolino wrote:
> 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.

Looks fine,

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

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));