• E
    ext3: speed up file creates by optimizing rec_len functions · a4ae3094
    Eric Sandeen 提交于
    The addition of 64k block capability in the rec_len_from_disk
    and rec_len_to_disk functions added a bit of math overhead which
    slows down file create workloads needlessly when the architecture
    cannot even support 64k blocks, thanks to page size limits.
    
    Similar changes already exist in the ext4 codebase.
    
    The directory entry checking can also be optimized a bit
    by sprinkling in some unlikely() conditions to move the
    error handling out of line.
    
    bonnie++ sequential file creates on a 512MB ramdisk speeds up
    from about 77,000/s to about 82,000/s, about a 6% improvement.
    Signed-off-by: NEric Sandeen <sandeen@redhat.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    a4ae3094
ext3_fs.h 32.5 KB