btrfs: remove unused parameter fs_info from emit_last_fiemap_cache
authorDavid Sterba <dsterba@suse.com>
Wed, 20 Mar 2019 10:29:46 +0000 (11:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:51 +0000 (19:02 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index 9aa79ad794c9dd735ed54be9c4ab57b911006e12..13fca7bfc1f200f53cb5003bad9a0594d7fec814 100644 (file)
@@ -4510,8 +4510,7 @@ try_submit_last:
  * In this case, the first extent range will be cached but not emitted.
  * So we must emit it before ending extent_fiemap().
  */
-static int emit_last_fiemap_cache(struct btrfs_fs_info *fs_info,
-                                 struct fiemap_extent_info *fieinfo,
+static int emit_last_fiemap_cache(struct fiemap_extent_info *fieinfo,
                                  struct fiemap_cache *cache)
 {
        int ret;
@@ -4718,7 +4717,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
        }
 out_free:
        if (!ret)
-               ret = emit_last_fiemap_cache(root->fs_info, fieinfo, &cache);
+               ret = emit_last_fiemap_cache(fieinfo, &cache);
        free_extent_map(em);
 out:
        btrfs_free_path(path);