Qu Wenruo
eb66ae0049
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:07:26 +01:00
..
2020-03-23 17:02:00 +01: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-21 13:14:52 +02:00
2020-05-25 11:25:35 +02:00
2020-09-09 19:14:26 +02:00
2020-05-25 11:25:30 +02:00
2020-05-25 11:25:35 +02:00
2020-03-23 17:01:55 +01:00
2020-06-09 19:21:48 +02:00
2020-03-23 17:01:40 +01:00
2020-03-23 17:01:39 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:37 +02:00
2020-09-09 19:14:25 +02:00
2020-09-03 11:29:40 +02:00
2020-03-23 17:01:55 +01:00
2019-07-04 17:26:17 +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-10-14 11:55: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-10-01 17:36:34 +02:00
2020-08-21 13:14:48 +02:00
2020-05-25 11:25:37 +02:00
2020-03-23 17:01:42 +01:00
2020-09-09 19:14:25 +02:00
2020-09-09 19:14:25 +02:00
2020-02-12 17:16:46 +01:00
2019-11-18 23:43:44 +01:00
2020-10-29 10:07:26 +01:00
2020-09-17 13:55:40 +02:00
2020-05-25 11:25:37 +02:00
2020-09-03 11:29:40 +02:00
2020-09-03 11:29:39 +02:00
2020-01-20 16:41:00 +01:00
2020-09-09 19:14:26 +02:00
2019-11-18 17:51:51 +01:00
2019-09-09 14:59:16 +02:00
2020-03-23 17:01:55 +01:00
2018-04-12 16:29:46 +02:00
2020-09-03 11:29:40 +02:00
2020-09-17 13:55:40 +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-03-23 17:01:34 +01:00
2020-03-23 17:01:34 +01:00
2018-04-12 16:29:51 +02:00
2020-09-17 13:55:40 +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-09-03 11:29:21 +02:00
2020-09-03 11:29:21 +02:00
2020-03-23 17:01:44 +01: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-08-21 13:14:48 +02:00
2019-04-29 19:02:49 +02:00
2020-04-08 19:10:34 +02:00
2020-03-23 17:01:54 +01:00
2020-08-21 13:14:49 +02:00
2020-05-25 11:25:36 +02:00
2020-09-09 19:14:25 +02:00
2020-06-02 19:59:25 -07:00
2018-04-12 16:29:46 +02:00
2020-08-19 08:26:17 +02:00
2020-05-25 11:25:22 +02:00
2020-05-25 11:25:35 +02:00
2020-09-03 11:29:39 +02:00
2020-10-01 17:36:34 +02:00
2020-03-23 17:01:35 +01:00
2020-09-17 13:55:30 +02:00
2020-08-21 13:14:48 +02:00
2020-09-09 19:14:26 +02:00
2019-04-29 19:02:39 +02:00
2020-05-25 11:25:35 +02:00
2020-09-03 11:29:39 +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:07:26 +01:00
2020-10-14 11:55:51 +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