• Chao Yu's avatar
    f2fs: enhance f2fs_is_checkpoint_ready()'s readability · 00e09c0b
    Chao Yu authored
    This patch changes sematics of f2fs_is_checkpoint_ready()'s return
    value as: return true when checkpoint is ready, other return false,
    it can improve readability of below conditions.
    
    f2fs_submit_page_write()
    ...
    	if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN) ||
    				!f2fs_is_checkpoint_ready(sbi))
    		__submit_merged_bio(io);
    
    f2fs_balance_fs()
    ...
    	if (!f2fs_is_checkpoint_ready(sbi))
    		return;
    Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    00e09c0b
xattr.c 18.5 KB