Filipe Manana
50b5d1fc41
btrfs: do not BUG_ON() on tree mod log failures at insert_ptr()
...
At insert_ptr(), instead of doing a BUG_ON() in case we fail to record
tree mod log operations, do a transaction abort and return the error to
the callers. There's really no need for the BUG_ON() as we can release all
resources in the context of all callers, and we have to abort because other
future tree searches that use the tree mod log (btrfs_search_old_slot())
may get inconsistent results if other operations modify the tree after
that failure and before the tree mod log based search.
This implies making insert_ptr() return an int instead of void, and making
all callers check for returned errors.
Signed-off-by: Filipe Manana <fdmanana@suse.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2023-06-19 13:59:39 +02:00
..
2023-06-19 13:59:30 +02:00
2022-12-05 18:00:58 +01:00
2022-12-05 18:00:58 +01:00
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:27 +01:00
2023-06-19 13:59:30 +02:00
2023-06-19 13:59:30 +02:00
2023-05-09 22:09:11 +02:00
2023-05-09 22:09:11 +02:00
2023-06-19 13:59:36 +02:00
2023-06-19 13:59:36 +02:00
2023-06-19 13:59:38 +02:00
2023-06-19 13:59:38 +02:00
2023-06-19 13:59:24 +02:00
2023-06-19 13:59:24 +02:00
2023-06-19 13:59:33 +02:00
2023-06-19 13:59:34 +02:00
2022-05-16 17:03:12 +02:00
2023-06-19 13:59:37 +02:00
2023-06-19 13:59:36 +02:00
2023-06-19 13:59:39 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:30 +02:00
2022-12-05 18:00:46 +01:00
2023-04-17 18:01:19 +02:00
2022-12-05 18:00:44 +01:00
2023-03-06 19:28:19 +01:00
2022-12-05 18:00:43 +01:00
2023-06-19 13:59:32 +02:00
2023-06-19 13:59:32 +02:00
2023-06-19 13:59:34 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:33 +02:00
2023-06-19 13:59:27 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:41 +01:00
2023-06-19 13:59:37 +02:00
2023-06-19 13:59:35 +02:00
2023-06-19 13:59:33 +02:00
2023-06-19 13:59:33 +02:00
2023-06-19 13:59:30 +02:00
2023-06-19 13:59:30 +02:00
2023-06-19 13:59:32 +02:00
2023-06-19 13:59:24 +02:00
2023-06-19 13:59:37 +02:00
2023-06-19 13:59:32 +02:00
2023-06-19 13:59:38 +02:00
2022-12-05 18:00:56 +01:00
2023-06-19 13:59:24 +02:00
2023-06-19 13:59:24 +02:00
2023-05-10 14:51:27 +02:00
2023-05-10 14:51:27 +02:00
2023-02-13 17:50:35 +01:00
2023-06-19 13:59:32 +02:00
2023-04-17 18:01:19 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:38 +02:00
2023-06-19 13:59:26 +02:00
2023-01-19 09:24:27 +01:00
2023-04-17 18:01:22 +02:00
2023-06-19 13:59:35 +02:00
2023-04-17 18:01:17 +02:00
2023-02-15 19:38:50 +01:00
2023-04-17 18:01:18 +02:00
2023-06-19 13:59:34 +02:00
2023-02-13 17:50:35 +01:00
2023-06-19 13:59:31 +02:00
2023-06-19 13:59:31 +02:00
2023-06-19 13:59:22 +02:00
2023-06-19 13:59:37 +02:00
2023-06-19 13:59:37 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2023-06-19 13:59:22 +02:00
2023-06-19 13:59:22 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:40 +01:00
2023-03-28 00:46:53 +02:00
2022-12-05 18:00:43 +01:00
2023-06-19 13:59:24 +02:00
2023-06-19 13:59:24 +02:00
2022-12-05 18:00:59 +01:00
2022-12-05 18:00:42 +01:00
2022-12-05 18:00:53 +01:00
2023-06-19 13:59:36 +02:00
2023-06-19 13:59:36 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:44 +01:00
2023-06-19 13:59:34 +02:00
2023-04-17 18:01:24 +02:00
2023-04-17 19:52:19 +02:00
2022-12-05 18:00:41 +01:00
2023-04-17 18:01:19 +02:00
2023-04-17 18:01:18 +02:00
2023-06-19 13:59:35 +02:00
2023-06-19 13:59:35 +02:00
2023-06-19 13:59:23 +02:00
2022-12-05 18:00:47 +01:00
2023-04-17 18:01:18 +02:00
2023-02-13 17:50:35 +01:00
2023-06-19 13:59:26 +02:00
2023-06-19 13:59:26 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:32 +02:00
2023-06-19 13:59:26 +02:00
2023-06-19 13:59:38 +02:00
2022-12-05 18:00:48 +01:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2023-01-01 15:46:48 -08:00
2022-12-05 18:00:47 +01:00
2023-06-19 13:59:34 +02:00
2023-06-19 13:59:34 +02:00
2023-03-06 09:57:12 +01:00
2023-06-19 13:59:34 +02:00
2023-06-19 13:59:34 +02:00
2023-06-19 13:59:33 +02:00
2023-06-19 13:59:34 +02:00