mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
btrfs: drop unused parameter refs from visit_node_for_delete()
The parameter duplicates what can be effectively obtained from
wc->refs[level - 1] and this is what's actually used inside. Added in
commit 2b73c7e761 ("btrfs: unify logic to decide if we need to walk
down into a node during snapshot delete").
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
cc5fe81aa6
commit
f8c4d59de2
|
|
@ -5270,7 +5270,7 @@ struct walk_control {
|
||||||
* corrupted file systems must have been caught before calling this function.
|
* corrupted file systems must have been caught before calling this function.
|
||||||
*/
|
*/
|
||||||
static bool visit_node_for_delete(struct btrfs_root *root, struct walk_control *wc,
|
static bool visit_node_for_delete(struct btrfs_root *root, struct walk_control *wc,
|
||||||
struct extent_buffer *eb, u64 refs, u64 flags, int slot)
|
struct extent_buffer *eb, u64 flags, int slot)
|
||||||
{
|
{
|
||||||
struct btrfs_key key;
|
struct btrfs_key key;
|
||||||
u64 generation;
|
u64 generation;
|
||||||
|
|
@ -5384,7 +5384,7 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* If we don't need to visit this node don't reada. */
|
/* If we don't need to visit this node don't reada. */
|
||||||
if (!visit_node_for_delete(root, wc, eb, refs, flags, slot))
|
if (!visit_node_for_delete(root, wc, eb, flags, slot))
|
||||||
continue;
|
continue;
|
||||||
reada:
|
reada:
|
||||||
btrfs_readahead_node_child(eb, slot);
|
btrfs_readahead_node_child(eb, slot);
|
||||||
|
|
@ -5737,8 +5737,7 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans,
|
||||||
|
|
||||||
/* If we don't have to walk into this node skip it. */
|
/* If we don't have to walk into this node skip it. */
|
||||||
if (!visit_node_for_delete(root, wc, path->nodes[level],
|
if (!visit_node_for_delete(root, wc, path->nodes[level],
|
||||||
wc->refs[level - 1], wc->flags[level - 1],
|
wc->flags[level - 1], path->slots[level]))
|
||||||
path->slots[level]))
|
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user