f2fs: fix wrong __is_meta_io() macro

This patch changes codes as below:
- don't use is_read_io() as a condition to judge the meta IO.
- use .is_por to replace .is_meta to indicate IO is from recovery explicitly.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu
2019-04-15 15:26:31 +08:00
committed by Jaegeuk Kim
parent ea6d7e72fe
commit 6dc3a12663
3 changed files with 6 additions and 6 deletions

View File

@@ -456,7 +456,8 @@ int f2fs_submit_page_bio(struct f2fs_io_info *fio)
fio->encrypted_page : fio->page;
if (!f2fs_is_valid_blkaddr(fio->sbi, fio->new_blkaddr,
__is_meta_io(fio) ? META_GENERIC : DATA_GENERIC))
fio->is_por ? META_POR :
(__is_meta_io(fio) ? META_GENERIC : DATA_GENERIC)))
return -EFAULT;
trace_f2fs_submit_page_bio(page, fio);