mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
dax/hmem: Parent dax_hmem devices
For test purposes it is useful to be able to determine which "hmem_platform" device is hosting a given sub-device. Register hmem devices underneath "hmem_platform". Signed-off-by: Dan Williams <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Alison Schofield <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dave Jiang <[email protected]>
This commit is contained in:
1 parent
f8dc1bde18
commit
059edcc405
1 file changed
+1
@@ -96,6 +96,7 @@ static int __hmem_register_device(struct device *host, int target_nid,
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
pdev->dev.parent = host;
|
||||
pdev->dev.numa_node = numa_map_to_online_node(target_nid);
|
||||
info = (struct memregion_info) {
|
||||
.target_node = target_nid,
|
||||
|
||||
Reference in new issue
Block a user