Liu Bo
1fc28d8e2e
Btrfs: move get root out of btrfs_search_slot to a helper
...
It's good to have a helper instead of having all get-root details
open-coded. The new helper locks (if necessary) and sets root node of
the path.
Also invert the checks to make the code flow easier to read. There is
no functional change in this commit.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-05-30 16:46:44 +02:00
..
2018-05-29 18:12:52 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:59 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-05-29 18:13:00 +02:00
2018-05-30 16:46:44 +02:00
2018-05-28 18:23:57 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:07:32 +02:00
2018-05-28 18:07:20 +02:00
2018-05-28 18:23:16 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-30 16:46:43 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:07:20 +02:00
2018-05-28 18:07:20 +02:00
2018-05-28 18:07:17 +02:00
2018-05-28 18:07:17 +02:00
2018-05-30 16:46:43 +02:00
2018-04-12 16:29:51 +02:00
2018-04-18 16:46:57 +02:00
2018-05-28 18:23:46 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:07:36 +02:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:24:00 +02:00
2018-05-30 16:46:43 +02:00
2018-04-12 16:29:55 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:07:26 +02:00
2018-04-20 19:18:16 +02:00
2018-05-17 14:18:25 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:24:11 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:07:28 +02:00
2018-05-28 18:07:32 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:24:13 +02:00
2018-05-28 18:23:41 +02:00
2018-05-28 18:23:39 +02:00
2018-05-28 18:23:57 +02:00
2018-04-18 16:46:47 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:23:38 +02:00
2018-05-28 18:07:30 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00