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

index c4ae9cfea7095e6170cce30cec5e17e1e1f2f627..5116c2a1f0f9e96af06ac1a749df51091afad661 100644 (file)
@@ -948,7 +948,7 @@ static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans,
                if (new_flags != 0) {
                        int level = btrfs_header_level(buf);
 
-                       ret = btrfs_set_disk_extent_flags(trans, fs_info,
+                       ret = btrfs_set_disk_extent_flags(trans,
                                                          buf->start,
                                                          buf->len,
                                                          new_flags, level, 0);
index 93318ab9ceb9764192909b2dac711a0476d905c7..b19c7d65fe7d75a669012951846d68e369228df8 100644 (file)
@@ -2746,7 +2746,6 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
                  struct extent_buffer *buf, int full_backref);
 int btrfs_set_disk_extent_flags(struct btrfs_trans_handle *trans,
-                               struct btrfs_fs_info *fs_info,
                                u64 bytenr, u64 num_bytes, u64 flags,
                                int level, int is_data);
 int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_ref *ref);
index 1eec1123660e74d536bd4b62ae93f91067ba2416..fa09a83a6954f10318614917ca236760eb2d954d 100644 (file)
@@ -2933,7 +2933,6 @@ out:
 }
 
 int btrfs_set_disk_extent_flags(struct btrfs_trans_handle *trans,
-                               struct btrfs_fs_info *fs_info,
                                u64 bytenr, u64 num_bytes, u64 flags,
                                int level, int is_data)
 {
@@ -8804,7 +8803,7 @@ static noinline int walk_down_proc(struct btrfs_trans_handle *trans,
                BUG_ON(ret); /* -ENOMEM */
                ret = btrfs_dec_ref(trans, root, eb, 0);
                BUG_ON(ret); /* -ENOMEM */
-               ret = btrfs_set_disk_extent_flags(trans, fs_info, eb->start,
+               ret = btrfs_set_disk_extent_flags(trans, eb->start,
                                                  eb->len, flag,
                                                  btrfs_header_level(eb), 0);
                BUG_ON(ret); /* -ENOMEM */