Sorry, but I think I was educated yesterday that ->fault() (only in -mm) is where we'd be heading. Nopfn is deprecated. But conceptually, this does'nt change things.An alternative approach, which does not need to have struct page atOf course! Okay now I'm begining to understand.
hand, would be to use the nopfn vm operations struct. That one would
have to rely on get_xip_pfn.
The new path via fault works in both cases with and without struct page behind. No need to keep the old one as far as I see.The current path would then be deprecated.Why? Wouldn't both paths be valid options?
Good. Let me see if I can come up with a patch on this.If you're interrested in using the later for xip withoutI'm very interested in this.
struct page, I would volounteer to go ahead and implement this?
I'm not opposed to using struct page, but I'm confused as to how toI fear I am not the right person to answer that question. In the good old days before discontigmem/sparse mem/vmem map where invented we used to have a hack for that in arch/. Heiko then decided my hack is a mess and came up with a good solution to the problem.
start that. As I understand it, which is not well, defined a
CONFIG_DISCONTIGMEM region to cover the Flash memory would add that to
my pool of RAM. That would be 'bad', right? I don't see how to
create the page structs and set this memory aside as different.