> Implementing a kmap_pfn() sounds like a perfectly sane idea. But why does > it need to even be mapped into kernel space? Is it for the ELF header > reading or something (not having looked at the patch, just reacting to the > wrongness of using virt_to_phys())? Right. My AXFS prefers the filesystem image to be in memory like Flash. So it also uses the kaddr to read it's data structures and to fetch data for the readpage(). In fact, the MTD doesn't provide access to the physical address of a given partition without a patch. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html