The branch main has been updated by arrowd:

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

commit af30e8d90b772c0997da013b17e67a64841282ac
Author:     Gleb Popov <[email protected]>
AuthorDate: 2025-10-14 09:24:27 +0000
Commit:     Gleb Popov <[email protected]>
CommitDate: 2025-10-14 12:05:17 +0000

    fuse_flush: Reuse the struct mount *mp variable
    
    Approved by: asomers
    Differential Revision: https://reviews.freebsd.org/D53082
---
 sys/fs/fuse/fuse_vnops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c
index 5c28db29fc63..683ee2f7ad56 100644
--- a/sys/fs/fuse/fuse_vnops.c
+++ b/sys/fs/fuse/fuse_vnops.c
@@ -284,7 +284,7 @@ fuse_flush(struct vnode *vp, struct ucred *cred, pid_t pid, 
int fflag)
        struct mount *mp = vnode_mount(vp);
        int err;
 
-       if (fsess_not_impl(vnode_mount(vp), FUSE_FLUSH))
+       if (fsess_not_impl(mp, FUSE_FLUSH))
                return 0;
 
        err = fuse_filehandle_getrw(vp, fflag, &fufh, cred, pid);
@@ -292,7 +292,7 @@ fuse_flush(struct vnode *vp, struct ucred *cred, pid_t pid, 
int fflag)
                return err;
 
        if (fufh->fuse_open_flags & FOPEN_NOFLUSH &&
-           (!fsess_opt_writeback(vnode_mount(vp))))
+           (!fsess_opt_writeback(mp)))
                return (0);
 
        fdisp_init(&fdi, sizeof(*ffi));

Reply via email to