Re: [f2fs-dev] [PATCH] f2fs: remove duplicate code in f2fs_file_write_iter

From: Chao Yu
Date: Mon Aug 05 2019 - 03:29:25 EST


On 2019/8/5 15:27, Lihong Kou wrote:
> We will do the same check in generic_write_checks.
> if (iocb->ki_flags & IOCB_NOWAIT) && !(iocb->ki_flags & IOCB_DIRECT)
> return -EINVAL;
> just remove the same check in f2fs_file_write_iter.
>
> Signed-off-by: Lihong Kou <koulihong@xxxxxxxxxx>

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,