Josef Bacik
80ee54bfe8
btrfs: fix insert_reserved error handling
...
We were not handling the reserved byte accounting properly for data
references. Metadata was fine, if it errored out the error paths would
free the bytes_reserved count and pin the extent, but it even missed one
of the error cases. So instead move this handling up into
run_one_delayed_ref so we are sure that both cases are properly cleaned
up in case of a transaction abort.
CC: stable@vger.kernel.org # 4.18+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-10-19 12:20:03 +02:00
..
2018-10-15 17:23:34 +02:00
2018-08-06 13:12:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:33 +02:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:25 +02:00
2018-10-15 17:23:30 +02:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:28 +02:00
2018-05-29 18:13:00 +02:00
2018-10-17 17:46:24 +02:00
2018-10-15 17:23:41 +02:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:38 +02:00
2018-10-15 17:23:33 +02:00
2018-10-17 19:21:00 +02:00
2018-10-15 17:23:41 +02:00
2018-10-15 17:23:38 +02:00
2018-10-15 17:23:37 +02:00
2018-10-15 17:23:25 +02:00
2018-10-15 17:23:39 +02:00
2018-08-06 13:12:55 +02:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:34 +02:00
2018-10-15 17:23:34 +02:00
2018-10-15 17:23:33 +02:00
2018-10-15 17:23:33 +02:00
2018-10-19 12:20:03 +02:00
2018-08-06 13:12:43 +02:00
2018-10-15 17:23:35 +02:00
2018-10-19 12:20:03 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:00 +02:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2018-10-19 12:20:03 +02:00
2018-10-15 17:23:32 +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-08-06 13:12:43 +02:00
2018-08-06 13:12:31 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:41 +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-10-15 17:23:40 +02:00
2018-10-15 17:23:40 +02:00
2018-08-06 13:12:45 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:40 +02:00
2018-08-06 13:13:00 +02:00
2018-10-15 17:23:37 +02:00
2018-10-15 17:23:30 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-10-15 17:23:25 +02:00
2018-08-06 13:12:43 +02:00
2018-05-28 18:23:39 +02:00
2018-10-15 17:23:41 +02:00
2018-08-06 13:12:29 +02:00
2018-10-15 17:23:37 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-10-17 17:44:53 +02:00
2018-10-15 17:23:27 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2018-10-15 17:23:37 +02:00
2018-10-15 17:23: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