Commit 5c5aff98 authored by David Sterba's avatar David Sterba

btrfs: remove unused parameter fs_info from emit_last_fiemap_cache

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 033774dc
...@@ -4510,8 +4510,7 @@ static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo, ...@@ -4510,8 +4510,7 @@ static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo,
* In this case, the first extent range will be cached but not emitted. * In this case, the first extent range will be cached but not emitted.
* So we must emit it before ending extent_fiemap(). * So we must emit it before ending extent_fiemap().
*/ */
static int emit_last_fiemap_cache(struct btrfs_fs_info *fs_info, static int emit_last_fiemap_cache(struct fiemap_extent_info *fieinfo,
struct fiemap_extent_info *fieinfo,
struct fiemap_cache *cache) struct fiemap_cache *cache)
{ {
int ret; int ret;
...@@ -4718,7 +4717,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, ...@@ -4718,7 +4717,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
} }
out_free: out_free:
if (!ret) if (!ret)
ret = emit_last_fiemap_cache(root->fs_info, fieinfo, &cache); ret = emit_last_fiemap_cache(fieinfo, &cache);
free_extent_map(em); free_extent_map(em);
out: out:
btrfs_free_path(path); btrfs_free_path(path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment