Re: [patch] ext2: xip check fix



Jared Hulbert wrote:
I think so. The filemap_xip.c functionality doesn't work for Flash
memory yet. Flash memory doesn't have struct pages to back it up with
which this stuff depends on.
Struct page is not the major issue. The primary problem is writing to the media (and I am not a flash expert at all, just relaying here): For some period of time, the flash memory is not usable and thus we need to make sure we can nuke the page table entries that we have in userland page tables. For that, we need a callback from the device so that it can ask to get its references back. Oh, and a put_xip_page counterpart to get_xip_page, so that the driver knows when it's safe to erase.

cheers,
Carsten
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH try#2] [MTD/MAPS] Blackfin BF5xx Maps: Handle the case where flash memory and ethernet ma
    ... Subject: Blackfin BF5xx Maps: Handle the case where flash memory and ethernet mac/phy are mapped onto the same async bank ... All board-specific configuration goes in your board resources file. ... struct flash_save save; ...
    (Linux-Kernel)
  • Re: [patch] ext2: xip check fix
    ... Struct page is not the major issue. ... The primary problem is writing to ... the flash memory is not usable and thus we ... counterpart to get_xip_page, so that the driver knows when it's safe ...
    (Linux-Kernel)
  • Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
    ... Nopfn is deprecated. ... The new path via fault works in both cases with and without struct page behind. ... CONFIG_DISCONTIGMEM region to cover the Flash memory would add that to ... In the good old days before discontigmem/sparse mem/vmem map where invented we used to have a hack for that in arch/. ...
    (Linux-Kernel)
  • Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
    ... would be to use the nopfn vm operations struct. ... I would volounteer to go ahead and implement this? ... CONFIG_DISCONTIGMEM region to cover the Flash memory would add that to ...
    (Linux-Kernel)