diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 16f39c0c457df..b1f38f2795bc9 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -3160,11 +3160,6 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) goto out; } - if ((iocb->ki_flags & IOCB_NOWAIT) && !(iocb->ki_flags & IOCB_DIRECT)) { - ret = -EINVAL; - goto out; - } - if (!inode_trylock(inode)) { if (iocb->ki_flags & IOCB_NOWAIT) { ret = -EAGAIN;