Qu Wenruo
f624d97608
btrfs: ctree: Reduce one indent level for btrfs_search_slot()
...
In btrfs_search_slot(), we something like:
if (level != 0) {
/* Do search inside tree nodes*/
} else {
/* Do search inside tree leaves */
goto done;
}
This caused extra indent for tree node search code. Change it to
something like:
if (level == 0) {
/* Do search inside tree leaves */
goto done'
}
/* Do search inside tree nodes */
So we have more space to maneuver our code, this is especially useful as
the tree nodes search code is more complex than the leaves search code.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-11-18 12:46:46 +01:00
..
2019-09-24 14:45:02 +02:00
2019-04-29 19:02:44 +02:00
2019-09-09 14:59:03 +02:00
2018-04-12 16:29:46 +02:00
2019-07-30 18:25:12 +02:00
2019-07-01 13:34:53 +02:00
2019-10-11 21:27:51 +02:00
2019-09-09 14:59:15 +02:00
2019-09-09 14:59:19 +02:00
2019-07-02 12:30:55 +02:00
2019-07-01 13:35:02 +02:00
2019-09-09 14:58:58 +02:00
2018-04-12 16:29:46 +02:00
2019-09-09 14:59:15 +02:00
2019-09-09 14:59:11 +02:00
2019-11-18 12:46:46 +01:00
2019-10-15 18:50:07 +02:00
2019-10-17 20:13:44 +02:00
2019-07-04 17:26:17 +02:00
2019-09-09 14:59:15 +02:00
2018-10-15 17:23:33 +02:00
2019-09-09 14:59:18 +02:00
2019-07-04 17:26:17 +02:00
2019-09-09 14:59:15 +02:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:50 +02:00
2019-10-15 15:43:29 +02:00
2019-09-09 14:59:11 +02:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2019-09-30 10:25:24 -07:00
2019-09-09 14:58:59 +02:00
2019-09-09 14:59:00 +02:00
2019-02-25 14:13:21 +01:00
2019-09-09 14:59:18 +02:00
2019-07-01 13:35:02 +02:00
2019-11-18 12:46:45 +01:00
2019-09-09 14:59:17 +02:00
2019-09-09 14:59:15 +02:00
2019-09-09 14:59:03 +02:00
2019-09-09 14:59:03 +02:00
2019-09-09 14:59:16 +02:00
2019-10-15 18:50:07 +02:00
2018-04-12 16:29:46 +02:00
2019-11-11 19:46:02 +01:00
2019-11-04 21:42:01 +01:00
2019-07-17 17:03:30 +02:00
2019-09-09 14:59:15 +02:00
2019-09-09 14:58:59 +02:00
2019-09-09 14:59:11 +02:00
2019-09-09 14:59:04 +02:00
2019-09-09 14:59:15 +02:00
2019-09-09 14:59:15 +02:00
2019-07-01 13:35:00 +02:00
2018-04-12 16:29:51 +02:00
2019-07-02 12:30:47 +02:00
2018-04-20 19:18:16 +02:00
2019-09-09 14:59:13 +02:00
2019-04-29 19:02:54 +02:00
2019-10-17 14:09:31 +02:00
2019-02-25 14:13:39 +01:00
2019-09-09 14:59:15 +02:00
2019-07-01 13:34:58 +02:00
2018-04-12 16:29:46 +02:00
2019-09-09 14:59:11 +02:00
2019-10-03 15:00:56 +02:00
2019-04-29 19:02:49 +02:00
2019-10-15 18:50:07 +02:00
2019-09-09 14:59:13 +02:00
2019-09-09 14:59:03 +02:00
2019-10-08 13:14:55 +02:00
2018-04-12 16:29:46 +02:00
2019-10-25 19:11:34 +02:00
2019-09-09 14:59:18 +02:00
2019-09-09 14:59:16 +02:00
2019-09-09 14:59:06 +02:00
2019-09-09 14:59:08 +02:00
2019-09-09 14:59:08 +02:00
2019-11-18 12:46:45 +01:00
2019-11-18 12:46:45 +01:00
2019-11-18 12:46:46 +01:00
2019-04-29 19:02:39 +02:00
2019-02-25 14:13:27 +01:00
2019-10-10 08:30:51 -07:00
2019-04-29 19:02:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:50 +02:00
2019-10-25 19:11:34 +02:00
2019-09-09 14:59:06 +02:00
2019-06-17 16:37:17 +02:00
2019-04-29 19:02:44 +02:00
2019-09-09 14:59:11 +02:00
2019-09-09 14:59:15 +02:00