On 10/6/20 2:55 AM, Dan Williams wrote: > The 'struct resource' in 'struct dev_pagemap' is only used for holding > resource span information. The other fields, 'name', 'flags', 'desc', > 'parent', 'sibling', and 'child' are all unused wasted space. > > This is in preparation for introducing a multi-range extension of > devm_memremap_pages(). > > The bulk of this change is unwinding all the places internal to libnvdimm > that used 'struct resource' unnecessarily, and replacing instances of > 'struct dev_pagemap'.res with 'struct dev_pagemap'.range. > > P2PDMA had a minor usage of the resource flags field, but only to report > failures with "%pR". That is replaced with an open coded print of the > range. > > Link: > https://lkml.kernel.org/r/159643103173.4062302.768998885691711532.st...@dwillia2-desk3.amr.corp.intel.com > Link: https://lkml.kernel.org/r/20200926121402.GA7467@kadam > Cc: Paul Mackerras <[email protected]> > Cc: Michael Ellerman <[email protected]> > Cc: Benjamin Herrenschmidt <[email protected]> > Cc: Vishal Verma <[email protected]> > Cc: Vivek Goyal <[email protected]> > Cc: Dave Jiang <[email protected]> > Cc: Ben Skeggs <[email protected]> > Cc: David Airlie <[email protected]> > Cc: Daniel Vetter <[email protected]> > Cc: Ira Weiny <[email protected]> > Cc: Bjorn Helgaas <[email protected]> > Cc: Boris Ostrovsky <[email protected]> > Cc: Juergen Gross <[email protected]> > Cc: Stefano Stabellini <[email protected]> > Cc: "Jérôme Glisse" <[email protected]> > Cc: Andrew Morton <[email protected]> > Reported-by: Dan Carpenter <[email protected]> > Signed-off-by: Dan Williams <[email protected]>
For Xen bits Reviewed-by: Boris Ostrovsky <[email protected]>

