Qu Wenruo
4924b3d485
btrfs: add owner and fs_info to alloc_state io_tree
...
[ Upstream commit 154f7cb868 ]
Commit 1c11b63eff ("btrfs: replace pending/pinned chunks lists with io
tree") introduced btrfs_device::alloc_state extent io tree, but it
doesn't initialize the fs_info and owner member.
This means the following features are not properly supported:
- Fs owner report for insert_state() error
Without fs_info initialized, although btrfs_err() won't panic, it
won't output which fs is causing the error.
- Wrong owner for trace events
alloc_state will get the owner as pinned extents.
Fix this by assiging proper fs_info and owner for
btrfs_device::alloc_state.
Fixes: 1c11b63eff ("btrfs: replace pending/pinned chunks lists with io tree")
Reviewed-by: Nikolay Borisov <nborisov@suse.com >
Signed-off-by: Qu Wenruo <wqu@suse.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-10-29 10:11:10 +01:00
..
2020-07-27 12:55:35 +02:00
2019-04-29 19:02:44 +02:00
2020-03-23 17:01:51 +01:00
2020-03-23 17:01:51 +01:00
2020-08-10 19:50:54 +02:00
2020-05-25 11:25:35 +02:00
2020-08-27 13:37:54 +02:00
2020-07-27 12:55:42 +02:00
2020-05-25 11:25:35 +02:00
2020-03-23 17:01:55 +01:00
2020-07-27 12:55:45 +02:00
2020-07-27 12:55:21 +02:00
2020-03-23 17:01:39 +01:00
2020-07-27 12:55:42 +02:00
2020-07-27 12:55:31 +02:00
2020-08-27 14:13:23 +02:00
2020-08-21 12:21:23 +02:00
2020-07-27 12:55:36 +02:00
2020-07-27 12:55:36 +02:00
2020-03-25 16:26:00 +01:00
2020-03-23 17:01:53 +01:00
2020-03-23 17:01:55 +01:00
2019-07-04 17:26:17 +02:00
2020-09-30 19:40:51 +02:00
2019-11-18 12:46:52 +01:00
2019-04-29 19:02:50 +02:00
2020-07-07 16:06:28 +02:00
2020-04-20 17:43:42 +02:00
2020-09-23 14:32:23 -07:00
2020-07-27 12:55:38 +02:00
2020-05-25 11:25:37 +02:00
2020-03-23 17:01:42 +01:00
2020-09-01 18:36:45 -07:00
2020-08-27 13:56:27 +02:00
2020-02-12 17:16:46 +01:00
2019-11-18 23:43:44 +01:00
2020-10-29 10:11:10 +01:00
2020-09-07 14:51:05 +02:00
2020-07-27 12:55:26 +02:00
2020-08-24 12:01:20 -07:00
2020-08-19 18:39:46 +02:00
2020-07-27 12:55:21 +02:00
2020-08-27 13:37:54 +02:00
2019-11-18 17:51:51 +01:00
2019-09-09 14:59:16 +02:00
2020-07-27 12:55:36 +02:00
2018-04-12 16:29:46 +02:00
2020-08-24 12:01:20 -07:00
2020-09-14 17:27:16 +02:00
2020-06-14 01:19:02 +02:00
2020-05-25 11:25:16 +02:00
2020-03-23 17:01:43 +01:00
2019-11-18 12:46:59 +01:00
2020-03-23 17:01:54 +01:00
2020-05-25 11:25:19 +02:00
2020-07-27 12:55:34 +02:00
2020-07-27 12:55:34 +02:00
2018-04-12 16:29:51 +02:00
2020-09-07 14:51:05 +02:00
2018-04-20 19:18:16 +02:00
2020-05-25 11:25:37 +02:00
2019-04-29 19:02:54 +02:00
2020-07-27 12:55:43 +02:00
2020-07-27 12:55:37 +02:00
2020-07-27 12:55:44 +02:00
2019-07-01 13:34:58 +02:00
2020-03-23 17:01:53 +01:00
2019-11-18 17:51:51 +01:00
2020-07-27 12:55:43 +02:00
2019-04-29 19:02:49 +02:00
2020-07-27 12:55:45 +02:00
2020-03-23 17:01:54 +01:00
2020-07-27 12:55:45 +02:00
2020-05-25 11:25:36 +02:00
2020-08-27 14:06:02 +02:00
2020-06-02 19:59:25 -07:00
2018-04-12 16:29:46 +02:00
2020-07-27 12:55:47 +02:00
2020-05-25 11:25:22 +02:00
2020-05-25 11:25:35 +02:00
2020-08-19 18:39:12 +02:00
2020-09-22 15:57:52 +02:00
2020-07-27 12:55:37 +02:00
2020-09-07 21:18:35 +02:00
2020-07-27 12:55:43 +02:00
2020-08-27 14:16:05 +02:00
2019-04-29 19:02:39 +02:00
2020-07-27 12:55:28 +02:00
2020-08-21 12:20:01 +02: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
2020-05-25 11:25:36 +02:00
2020-10-29 10:11:10 +01:00
2020-09-25 16:40:22 +02: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