btrfs: remove unused parameter fs_info from btrfs_add_delayed_extent_op
authorDavid Sterba <dsterba@suse.com>
Wed, 20 Mar 2019 10:42:34 +0000 (11:42 +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/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c

index 5c1f2462f7575d8b8baeaafd4d180c2db438cbf7..a73fc23e29618700d6bc800c897b6da7cf616341 100644 (file)
@@ -924,8 +924,7 @@ int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
        return 0;
 }
 
-int btrfs_add_delayed_extent_op(struct btrfs_fs_info *fs_info,
-                               struct btrfs_trans_handle *trans,
+int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans,
                                u64 bytenr, u64 num_bytes,
                                struct btrfs_delayed_extent_op *extent_op)
 {
index 7cbb52adc553e776958de92251332ee8c265f153..c18f93ea88ed1d6132c2ec8b0163bc8ff16a95be 100644 (file)
@@ -340,8 +340,7 @@ int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
                               struct btrfs_ref *generic_ref,
                               u64 reserved, int *old_ref_mod,
                               int *new_ref_mod);
-int btrfs_add_delayed_extent_op(struct btrfs_fs_info *fs_info,
-                               struct btrfs_trans_handle *trans,
+int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans,
                                u64 bytenr, u64 num_bytes,
                                struct btrfs_delayed_extent_op *extent_op);
 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
index 2ac4ae41cfedbbfdf7a37d9c7ad9c36e78b24652..1eec1123660e74d536bd4b62ae93f91067ba2416 100644 (file)
@@ -2950,8 +2950,7 @@ int btrfs_set_disk_extent_flags(struct btrfs_trans_handle *trans,
        extent_op->is_data = is_data ? true : false;
        extent_op->level = level;
 
-       ret = btrfs_add_delayed_extent_op(fs_info, trans, bytenr,
-                                         num_bytes, extent_op);
+       ret = btrfs_add_delayed_extent_op(trans, bytenr, num_bytes, extent_op);
        if (ret)
                btrfs_free_delayed_extent_op(extent_op);
        return ret;