The dev field in struct dev_pagemap is only used to print dev_name in two places, which are at best nice to have. Just remove the field and thus the name in those two messages.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -109,7 +109,6 @@ struct dev_pagemap { · 108 unmodified lines | |||
| 109 | struct percpu_ref *ref; | 109 | struct percpu_ref *ref; |
| 110 | struct percpu_ref internal_ref; | 110 | struct percpu_ref internal_ref; |
| 111 | struct completion done; | 111 | struct completion done; |
| 112 | struct device *dev; | ||
| 113 | enum memory_type type; | 112 | enum memory_type type; |
| 114 | unsigned int flags; | 113 | unsigned int flags; |
| 115 | u64 pci_p2pdma_bus_offset; | 114 | u64 pci_p2pdma_bus_offset; |