• J
    f2fs: avoid readahead race condition · 6b12367d
    Jaegeuk Kim 提交于
    If two readahead threads having same offset enter in readpages, every read
    IOs are split and issued to the disk which giving lower bandwidth.
    
    This patch tries to avoid redundant readahead calls.
    
    Fixes one build error reported by Randy.
    Fix build error when F2FS_FS_COMPRESSION is not set/enabled.
    This label is needed in either case.
    
    ../fs/f2fs/data.c: In function ‘f2fs_mpage_readpages’:
    ../fs/f2fs/data.c:2327:5: error: label ‘next_page’ used but not defined
         goto next_page;
    Reviewed-by: NChao Yu <yuchao0@huawei.com>
    Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
    6b12367d
f2fs.h 131.6 KB