Skip to content
Snippets Groups Projects
  • Mark Tomlinson's avatar
    2d6d93a2
    JFFS2: Improve speed reading flash files · 2d6d93a2
    Mark Tomlinson authored
    
    jffs2_1pass_read_inode() would read the entire data for each node
    in the filesystem, regardless of whether it was part of the file
    to be loaded or not. By only reading the header data for an inode,
    and then reading the data only when it is found to be part of the
    file to be loaded, much copying of data is saved.
    
    jffs2_1pass_list_inodes() read each inode for every file in the
    directory into a buffer. By using NULL as a buffer pointer, NOR
    flash simply returns a pointer, and therefore avoids a memory copy.
    
    Signed-off-by: default avatarMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
    2d6d93a2
    History
    JFFS2: Improve speed reading flash files
    Mark Tomlinson authored
    
    jffs2_1pass_read_inode() would read the entire data for each node
    in the filesystem, regardless of whether it was part of the file
    to be loaded or not. By only reading the header data for an inode,
    and then reading the data only when it is found to be part of the
    file to be loaded, much copying of data is saved.
    
    jffs2_1pass_list_inodes() read each inode for every file in the
    directory into a buffer. By using NULL as a buffer pointer, NOR
    flash simply returns a pointer, and therefore avoids a memory copy.
    
    Signed-off-by: default avatarMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>