]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc55e461b6d1e9af9f0eeae2234172090347e7068
tree01d1f912bff08b19df61021244803305d5a1c0b6
parentd603c4761069c84c3506ba091a0295e50eb8d63c
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