Nikolay Borisov a2c79a9f15 btrfs: Remove redundant extent_buffer_get in get_old_root
[ Upstream commit 6c122e2a0c515cfb3f3a9cefb5dad4cb62109c78 ]

get_old_root used used only by btrfs_search_old_slot to initialise the
path structure. The old root is always a cloned buffer (either via alloc
dummy or via btrfs_clone_extent_buffer) and its reference count is 2: 1
from allocation, 1 from extent_buffer_get call in get_old_root.

This latter explicit ref count acquire operation is in fact unnecessary
since the semantic is such that the newly allocated buffer is handed
over to the btrfs_path for lifetime management. Considering this just
remove the extra extent_buffer_get in get_old_root.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-12 11:47:35 +02:00
..
2020-08-21 11:02:06 +02:00
2020-01-29 10:24:34 +01:00
2016-10-15 12:09:13 -07:00
2020-09-12 11:47:32 +02:00
2019-08-06 18:29:38 +02:00
2020-08-21 11:02:04 +02:00
2020-08-21 11:02:08 +02:00
2017-11-30 08:39:04 +00:00
2020-08-26 10:29:05 +02:00
2019-03-13 14:04:52 -07:00
2018-12-21 14:11:31 +01:00
2020-09-03 11:21:19 +02:00
2020-04-02 17:20:27 +02:00
2018-02-17 13:21:15 +01:00
2017-06-14 15:06:01 +02:00