OSDN Git Service

btrfs: move ref_mod modification into the if (ref) logic
authorJosef Bacik <josef@toxicpanda.com>
Fri, 29 Sep 2017 19:43:55 +0000 (15:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:28:00 +0000 (12:28 +0100)
commit1ce7a5ec44c8b148c4600e25c696a135319734db
tree01d1f912bff08b19df61021244803305d5a1c0b6
parent194ab0bc21cc99c5b804040aa785e0bdcc214656
btrfs: move ref_mod modification into the if (ref) logic

We only use this logic if our ref isn't a ref_head, so move it up into
the if (ref) case since we know that this is a normal ref and not a
delayed ref head.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c