Skip to content

Commit a901004

Browse files
josephhzdjwong
authored andcommitted
fs/iomap: remove redundant check in iomap_dio_rw()
We've already check if it is READ iov_iter, no need check again. Signed-off-by: Joseph Qi <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent c039b99 commit a901004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/iomap/direct-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
433433
if (pos >= dio->i_size)
434434
goto out_free_dio;
435435

436-
if (iter_is_iovec(iter) && iov_iter_rw(iter) == READ)
436+
if (iter_is_iovec(iter))
437437
dio->flags |= IOMAP_DIO_DIRTY;
438438
} else {
439439
flags |= IOMAP_WRITE;

0 commit comments

Comments
 (0)