Nikolay Borisov
f603bb94ab
btrfs: Perform pinned cleanup directly in btrfs_destroy_delayed_refs
...
Having btrfs_destroy_delayed_refs call btrfs_pin_extent is problematic
for making pinned extents tracking per-transaction since
btrfs_trans_handle cannot be passed to btrfs_pin_extent in this context.
Additionally delayed refs heads pinned in btrfs_destroy_delayed_refs
are going to be handled very closely, in btrfs_destroy_pinned_extent.
To enable btrfs_pin_extent to take btrfs_trans_handle simply open code
it in btrfs_destroy_delayed_refs and call btrfs_error_unpin_extent_range
on the range. This enables us to do less work in
btrfs_destroy_pinned_extent and leaves btrfs_pin_extent being called in
contexts which have a valid btrfs_trans_handle.
Reviewed-by: Josef Bacik <josef@toxicpanda.com >
Signed-off-by: Nikolay Borisov <nborisov@suse.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2020-03-23 17:01:36 +01:00
..
2020-03-23 17:01:33 +01:00
2019-04-29 19:02:44 +02:00
2019-11-18 12:46:52 +01:00
2019-11-18 12:46:52 +01:00
2020-03-23 17:01:33 +01:00
2019-07-01 13:34:53 +02:00
2020-03-23 17:01:34 +01:00
2020-01-23 17:24:34 +01:00
2020-03-23 17:01:26 +01:00
2019-07-02 12:30:55 +02:00
2020-03-23 17:01:24 +01:00
2020-01-20 16:40:52 +01:00
2018-04-12 16:29:46 +02:00
2020-01-31 10:30:40 -08:00
2019-11-18 12:46:59 +01:00
2020-03-23 17:01:33 +01:00
2020-03-23 17:01:33 +01:00
2020-03-23 17:01:27 +01:00
2019-07-04 17:26:17 +02:00
2020-03-23 17:01:34 +01:00
2018-10-15 17:23:33 +02:00
2020-01-31 14:01:20 +01:00
2019-07-04 17:26:17 +02:00
2020-03-23 17:01:35 +01:00
2019-11-18 12:46:52 +01:00
2019-04-29 19:02:50 +02:00
2020-01-20 16:41:01 +01:00
2020-01-20 16:41:00 +01:00
2020-03-23 17:01:36 +01:00
2020-03-23 17:01:33 +01:00
2020-03-23 17:01:33 +01:00
2018-04-12 16:29:46 +02:00
2020-03-23 17:01:35 +01:00
2020-03-23 17:01:35 +01:00
2020-02-12 17:16:46 +01:00
2019-11-18 23:43:44 +01:00
2020-03-23 17:01:24 +01:00
2020-03-23 17:01:34 +01:00
2020-03-23 17:01:24 +01:00
2020-03-23 17:01:34 +01:00
2020-01-20 16:41:01 +01:00
2020-01-20 16:41:00 +01:00
2020-03-23 17:01:33 +01:00
2019-11-18 17:51:51 +01:00
2019-09-09 14:59:16 +02:00
2020-01-20 16:40:57 +01:00
2018-04-12 16:29:46 +02:00
2020-03-23 17:01:35 +01:00
2020-03-23 17:01:33 +01:00
2019-12-09 17:56:06 +01:00
2020-03-23 17:01:33 +01:00
2019-11-18 12:46:49 +01:00
2019-11-18 12:46:59 +01:00
2020-01-20 16:40:57 +01:00
2019-11-18 12:46:50 +01:00
2020-03-23 17:01:34 +01:00
2020-03-23 17:01:34 +01:00
2018-04-12 16:29:51 +02:00
2020-01-20 16:40:55 +01:00
2018-04-20 19:18:16 +02:00
2019-11-18 12:46:55 +01:00
2019-04-29 19:02:54 +02:00
2020-03-23 17:01:33 +01:00
2020-02-19 00:35:54 +01:00
2019-11-18 12:47:00 +01:00
2019-07-01 13:34:58 +02:00
2018-04-12 16:29:46 +02:00
2019-11-18 17:51:51 +01:00
2020-02-12 17:16:31 +01:00
2019-04-29 19:02:49 +02:00
2020-03-23 17:01:33 +01:00
2020-03-23 17:01:33 +01:00
2020-03-23 17:01:33 +01:00
2020-03-23 17:01:33 +01:00
2018-04-12 16:29:46 +02:00
2020-03-23 17:01:27 +01:00
2020-01-31 14:02:01 +01:00
2019-09-09 14:59:16 +02:00
2020-03-23 17:01:34 +01:00
2020-03-23 17:01:36 +01:00
2020-03-23 17:01:35 +01:00
2020-03-23 17:01:34 +01:00
2020-03-23 17:01:34 +01:00
2020-01-20 16:40:56 +01:00
2019-04-29 19:02:39 +02:00
2019-02-25 14:13:27 +01:00
2020-03-23 17:01:33 +01: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-12-13 14:10:45 +01:00
2020-03-23 17:01:35 +01:00
2020-02-16 11:43:45 -08:00
2019-06-17 16:37:17 +02:00
2019-04-29 19:02:44 +02:00
2020-01-31 10:30:40 -08:00
2019-11-18 12:46:59 +01:00