git: 91e03758ded5 - main - tarfs: Don't use IO_DIRECT when reading from tarball.

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 10:02:19 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=91e03758ded5dbaf7a5a6247c3eb61a07c95494d

commit 91e03758ded5dbaf7a5a6247c3eb61a07c95494d
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-06-20 09:37:24 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-06-20 10:02:10 +0000

    tarfs: Don't use IO_DIRECT when reading from tarball.
    
    Sponsored by:   Juniper Networks, Inc.
    Sponsored by:   Klara, Inc.
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D40612
---
 sys/fs/tarfs/tarfs_io.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/fs/tarfs/tarfs_io.c b/sys/fs/tarfs/tarfs_io.c
index 58f3e7eab03f..a3d8df62d7df 100644
--- a/sys/fs/tarfs/tarfs_io.c
+++ b/sys/fs/tarfs/tarfs_io.c
@@ -125,8 +125,7 @@ tarfs_io_read(struct tarfs_mount *tmp, bool raw, struct uio *uiop)
 		rl = vn_rangelock_rlock(tmp->vp, off, off + len);
 		error = vn_lock(tmp->vp, LK_SHARED);
 		if (error == 0) {
-			error = VOP_READ(tmp->vp, uiop,
-			    IO_DIRECT|IO_NODELOCKED,
+			error = VOP_READ(tmp->vp, uiop, IO_NODELOCKED,
 			    uiop->uio_td->td_ucred);
 			VOP_UNLOCK(tmp->vp);
 		}
@@ -426,8 +425,7 @@ tarfs_zread_zstd(struct tarfs_zio *zio, struct uio *uiop)
 			auio.uio_rw = UIO_READ;
 			auio.uio_resid = aiov.iov_len;
 			auio.uio_td = td;
-			error = VOP_READ(tmp->vp, &auio,
-			    IO_DIRECT | IO_NODELOCKED,
+			error = VOP_READ(tmp->vp, &auio, IO_NODELOCKED,
 			    td->td_ucred);
 			if (error != 0)
 				goto fail;