• Paolo \'Blaisorblade\' Giarrusso's avatar
    [PATCH] hostfs: uml: add some other pagecache methods · 646ce630
    Paolo \'Blaisorblade\' Giarrusso authored
    This is a follow-up to my previous "hostfs - uml: set .sendfile to
    generic_file_sendfile" patch. I was asking whether other methods should have
    been added, and comparing with ext3 I found some more ones.
    
    However, I have not specific clues about them: I know they use the pagecache,
    which relies on *page methods, which are defined by hostfs. So I think it
    could work.
    
    I have a doubt, whether hostfs needs the commented out method below:
    
    static struct address_space_operations hostfs_aops = {
    	.writepage 	= hostfs_writepage,
    	.readpage	= hostfs_readpage,
    /* 	.set_page_dirty = __set_page_dirty_nobuffers, */
    	.prepare_write	= hostfs_prepare_write,
    	.commit_write	= hostfs_commit_write
    };
    
    Hostfs does not have a underlying device (and I have some rough idea that
    buffers cache block devices data), so I wonder if that is needed or not.
    Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    646ce630
hostfs_kern.c 22.1 KB