@@ -994,7 +994,6 @@ void nilfs_dirty_inode(struct inode *inode, int flags)
int nilfs_fiemap(struct inode *inode, struct fiemap_ctx *f_ctx)
{
- struct fiemap_extent_info *fieinfo = f_ctx->fc_data;
u64 start = f_ctx->fc_start;
u64 len = f_ctx->fc_len;
struct the_nilfs *nilfs = inode->i_sb->s_fs_info;
@@ -1029,7 +1028,8 @@ int nilfs_fiemap(struct inode *inode, struct fiemap_ctx *f_ctx)
if (size) {
/* End of the current extent */
ret = fiemap_fill_next_extent(
- fieinfo, logical, phys, size, flags);
+ (struct fiemap_extent_info *)f_ctx->fc_data,
+ logical, phys, size, flags);
if (ret)
break;
}
@@ -1079,7 +1079,8 @@ int nilfs_fiemap(struct inode *inode, struct fiemap_ctx *f_ctx)
flags |= FIEMAP_EXTENT_LAST;
ret = fiemap_fill_next_extent(
- fieinfo, logical, phys, size, flags);
+ (struct fiemap_extent_info *)f_ctx->fc_data,
+ logical, phys, size, flags);
if (ret)
break;
size = 0;
@@ -1094,8 +1095,8 @@ int nilfs_fiemap(struct inode *inode, struct fiemap_ctx *f_ctx)
} else {
/* Terminate the current extent */
ret = fiemap_fill_next_extent(
- fieinfo, logical, phys, size,
- flags);
+ (struct fiemap_extent_info *)f_ctx->fc_data,
+ logical, phys, size, flags);
if (ret || blkoff > end_blkoff)
break;
struct fiemap-extent_info will be gone in later patches, remove its direct usage from nilfs2 Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> --- fs/nilfs2/inode.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)