diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-08-21 10:56:53 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-28 02:03:18 +0200 |
commit | 5f1313a45d5ed89e7bb7efab3bb7b62a42b7b30f (patch) | |
tree | 46cc570fa5f64bbb6217c728330f8146d2f5a96b /extent-tree.c | |
parent | 15cda713b2351aa8dafb94ff1ab94559bf1254fd (diff) |
btrfs-progs: remove unused flags for btrfs_path
The three flags of @btrfs_path:
btrfs_path {
unsigned int keep_locks:1;
unsigned int skip_locking:1;
unsigned int leave_spinning:1;
}
have little meaning, because the userspace @btrfs_search_slot()
is free of locking and no other routines will decide their behavior
on these. So just remove them.
Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'extent-tree.c')
-rw-r--r-- | extent-tree.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/extent-tree.c b/extent-tree.c index c46c92b9..5443ec86 100644 --- a/extent-tree.c +++ b/extent-tree.c @@ -1418,7 +1418,6 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, return -ENOMEM; path->reada = 1; - path->leave_spinning = 1; ret = insert_inline_extent_backref(trans, root->fs_info->extent_root, path, bytenr, num_bytes, parent, @@ -1440,7 +1439,6 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, btrfs_release_path(path); path->reada = 1; - path->leave_spinning = 1; /* now insert the actual backref */ ret = insert_extent_backref(trans, root->fs_info->extent_root, @@ -2195,7 +2193,6 @@ static int __free_extent(struct btrfs_trans_handle *trans, return -ENOMEM; path->reada = 1; - path->leave_spinning = 1; is_data = owner_objectid >= BTRFS_FIRST_FREE_OBJECTID; if (is_data) @@ -2239,7 +2236,6 @@ static int __free_extent(struct btrfs_trans_handle *trans, is_data); BUG_ON(ret); btrfs_release_path(path); - path->leave_spinning = 1; key.objectid = bytenr; @@ -2304,7 +2300,6 @@ static int __free_extent(struct btrfs_trans_handle *trans, BUG_ON(ret < 0); btrfs_release_path(path); - path->leave_spinning = 1; key.objectid = bytenr; key.type = BTRFS_EXTENT_ITEM_KEY; @@ -2711,7 +2706,6 @@ static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, path = btrfs_alloc_path(); BUG_ON(!path); - path->leave_spinning = 1; ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, ins, size); BUG_ON(ret); |