diff mbox

[vfs,v3,4/4] GFS2: Use new iomap interface for fiemap

Message ID 1457122300-28514-5-git-send-email-rpeterso@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bob Peterson March 4, 2016, 8:11 p.m. UTC
This patch switches the GFS2 fiemap interface so that it uses the
new iomap infrastructure rather than the old blockmap.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
---
 fs/gfs2/inode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Christoph Hellwig March 15, 2016, 7:33 a.m. UTC | #1
> -		ret = __generic_block_fiemap(inode, fieinfo, start, len,
> -					     gfs2_block_map);
> +		ret = __generic_iomap_fiemap(inode, fieinfo, start, len,
> +					     gfs2_get_iomap);

So it seems like the generic_iomap_fiemap you added is unused,
no need to add it then.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 1bae189..3625753 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -2090,8 +2090,8 @@  static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
 		if (ret == 1)
 			ret = 0;
 	} else {
-		ret = __generic_block_fiemap(inode, fieinfo, start, len,
-					     gfs2_block_map);
+		ret = __generic_iomap_fiemap(inode, fieinfo, start, len,
+					     gfs2_get_iomap);
 	}
 
 	gfs2_glock_dq_uninit(&gh);