David Sterba
e2683fc9d2
btrfs: tree-check: reduce stack consumption in check_dir_item
...
I've noticed that the updated item checker stack consumption increased
dramatically in 542f5385e20cf97447 ("btrfs: tree-checker: Add checker
for dir item")
tree-checker.c:check_leaf +552 (176 -> 728)
The array is 255 bytes long, dynamic allocation would slow down the
sanity checks so it's more reasonable to keep it on-stack. Moving the
variable to the scope of use reduces the stack usage again
tree-checker.c:check_leaf -264 (728 -> 464)
Reviewed-by: Josef Bacik <jbacik@fb.com >
Reviewed-by: Qu Wenruo <wqu@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2018-01-22 16:08:21 +01:00
..
2018-01-22 16:08:14 +01:00
2017-08-21 17:47:42 +02:00
2017-10-30 12:27:57 +01:00
2017-08-16 14:19:53 +02:00
2018-01-22 16:08:14 +01:00
2017-11-01 20:45:34 +01:00
2017-11-01 20:45:35 +01:00
2017-11-01 20:45:36 +01:00
2018-01-22 16:08:19 +01:00
2018-01-22 16:08:16 +01:00
2018-01-22 16:08:19 +01:00
2018-01-22 16:08:19 +01:00
2018-01-22 16:08:11 +01:00
2017-04-18 14:07:23 +02:00
2018-01-22 16:08:11 +01:00
2018-01-22 16:08:11 +01:00
2018-01-22 16:08:15 +01:00
2018-01-22 16:08:12 +01:00
2018-01-22 16:08:21 +01:00
2018-01-22 16:08:13 +01:00
2018-01-22 16:08:12 +01:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:08:19 +01:00
2018-01-22 16:08:19 +01:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:08:14 +01:00
2018-01-22 16:08:15 +01:00
2017-07-05 16:41:23 -07:00
2018-01-22 16:08:20 +01:00
2018-01-22 16:08:19 +01:00
2017-10-30 12:27:59 +01:00
2017-08-18 16:36:29 +02:00
2017-06-08 17:36:03 +08:00
2017-11-01 20:45:35 +01:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:08:19 +01:00
2018-01-22 16:08:21 +01:00
2017-10-30 12:28:00 +01:00
2017-11-01 20:45:29 +01:00
2017-11-14 13:35:29 -08:00
2017-11-01 20:45:35 +01:00
2017-06-29 20:17:02 +02:00
2017-08-21 17:47:43 +02:00
2017-08-16 16:12:03 +02:00
2018-01-22 16:08:16 +01:00
2018-01-22 16:08:12 +01:00
2017-06-29 20:17:02 +02:00
2018-01-22 16:08:20 +01:00
2017-06-19 18:25:59 +02:00
2018-01-22 16:08:13 +01:00
2017-10-30 12:28:00 +01:00
2017-11-15 17:27:46 +01:00
2018-01-22 16:08:12 +01:00
2018-01-22 16:08:20 +01:00
2018-01-22 16:08:12 +01:00
2017-10-30 12:27:59 +01:00
2017-08-16 14:19:53 +02:00
2018-01-22 16:08:20 +01:00
2018-01-22 16:08:11 +01:00
2017-11-14 13:35:29 -08:00
2018-01-22 16:08:20 +01:00
2018-01-22 16:08:14 +01:00
2018-01-22 16:08:21 +01:00
2017-11-28 14:59:09 +01:00
2018-01-22 16:08:14 +01:00
2018-01-22 16:08:20 +01:00
2018-01-22 16:08:20 +01:00
2018-01-22 16:08:12 +01:00
2017-11-01 20:45:29 +01:00
2018-01-22 16:08:14 +01:00