VM_XIP Request for comments
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines
I can't find
CONFIG_XIP. But I assume you are talking aboutfilemap_xip.candDocumentation/filesystems/xip.txt.
Actually the thing consists of three parts:
- a block device that does implement the direct_access method. so far the only driver that does that is drivers/s390/block/dcssblk.c. We are aware that this one needs cleanup ;-).
- extension to good old ext2 filesystem that does implement get_xip_page address space operation. Uses direct_access block device operation.
- the stuff in mm/filemap_xip.c which actually does the job (read,write, mmap etc.) by calling get_xip_page address space operation.
Quoted 3 lines
I don't know. The code and discussions about it looked very big-iron DSCC specific but now on second pass it was meant to more generic. If I can learn this infrastructure then maybe this will work.
The only part that is architecture specific is the block device driver. Both the ext2 extensions and filemap_xip are architecture independent.
Quoted 8 lines
So I'm supposed to create a function in the target fs that gets plugged into
get_xip_page(). Then I call that function to create an proper XIP'ed page in mymmap()andfread()calls. I could use the first arg ofget_xip_page()to pass in the start address of the cramfs volume and the second the offset of the page in the file I want to map.Is that about right?
The first step would be to write a block device driver that allows to mount your memory backed storage thing [flash chip?]. The block device driver needs to implement the direct_access method. Now you can mount ext2 filesystems with -o xip.
Ext2 does not support compression, and all files are xip once you select -o xip. Would be interresting to have a filesystem that can do both xip and compression on a per-file basis, but as far as I can tell the basic layering should also work fine with such filesystem: should work with any block device, file operations in filemap_xip.c can be used for those files that are xip [and not compressed].
Signature · 9 lines
Carsten Otte IBM Linux technology center ARCH=s390 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 31 lines · Carsten Otte
Quoted 2 lines · Jared Hulbert
I can't find
CONFIG_XIP. But I assume you are talking aboutfilemap_xip.candDocumentation/filesystems/xip.txt.Actually the thing consists of three parts:
- a block device that does implement thedirect_accessmethod. so far the only driver that does that isdrivers/s390/block/dcssblk.c. We are aware that this one needs cleanup ;-).
- extension to good old ext2 filesystem that does implementget_xip_pageaddress space operation. Usesdirect_accessblock device operation.
- the stuff inmm/filemap_xip.cwhich actually does the job (read,write, mmap etc.) by callingget_xip_pageaddress space operation.Quoted 3 lines
I don't know. The code and discussions about it looked very big-iron DSCC specific but now on second pass it was meant to more generic. If I can learn this infrastructure then maybe this will work.
The only part that is architecture specific is the block device driver. Both the ext2 extensions and
filemap_xipare architecture independent.Quoted 8 lines
So I'm supposed to create a function in the target fs that gets plugged into
get_xip_page(). Then I call that function to create an proper XIP'ed page in mymmap()andfread()calls. I could use the first arg ofget_xip_page()to pass in the start address of the cramfs volume and the second the offset of the page in the file I want to map.Is that about right?
The first step would be to write a block device driver that allows to mount your memory backed storage thing [flash chip?]. The block device driver needs to implement the
direct_accessmethod. Now you can mount ext2 filesystems with -o xip.
Quoted 6 lines
Ext2 does not support compression, and all files are xip once you select -o xip. Would be interresting to have a filesystem that can do both xip and compression on a per-file basis, but as far as I can tell the basic layering should also work fine with such filesystem: should work with any block device, file operations in
filemap_xip.ccan be used for those files that are xip [and not compressed].
I don't want to use EXT2. I want to use linear cramfs (no block device) or something brand new. Under these circumstances I don't need a block device driver right?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · Jared Hulbert
I don't want to use EXT2. I want to use linear cramfs (no block device) or something brand new. Under these circumstances I don't need a block device driver right?
No. Your filesystem needs to implement the vm operation get_xip_page, and that's it,
Signature · 9 lines
Carsten Otte IBM Linux technology center ARCH=s390 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>