• Yunlei He's avatar
    f2fs: move dir data flush to write checkpoint process · b61ac5b7
    Yunlei He authored
    This patch move dir data flush to write checkpoint process, by
    doing this, it may reduce some time for dir fsync.
    
    pre:
    	-f2fs_do_sync_file enter
    		-file_write_and_wait_range  <- flush & wait
    		-write_checkpoint
    			-do_checkpoint	    <- wait all
    	-f2fs_do_sync_file exit
    
    now:
    	-f2fs_do_sync_file enter
    		-write_checkpoint
    			-block_operations   <- flush dir & no wait
    			-do_checkpoint	    <- wait all
    	-f2fs_do_sync_file exit
    Signed-off-by: default avatarYunlei He <heyunlei@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    b61ac5b7
file.c 73.8 KB