Skip to content

Commit af30e8d

Browse files
committed
fuse_flush: Reuse the struct mount *mp variable
Approved by: asomers Differential Revision: https://reviews.freebsd.org/D53082
1 parent dfd822b commit af30e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sys/fs/fuse/fuse_vnops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ fuse_flush(struct vnode *vp, struct ucred *cred, pid_t pid, int fflag)
284284
struct mount *mp = vnode_mount(vp);
285285
int err;
286286

287-
if (fsess_not_impl(vnode_mount(vp), FUSE_FLUSH))
287+
if (fsess_not_impl(mp, FUSE_FLUSH))
288288
return 0;
289289

290290
err = fuse_filehandle_getrw(vp, fflag, &fufh, cred, pid);
291291
if (err)
292292
return err;
293293

294294
if (fufh->fuse_open_flags & FOPEN_NOFLUSH &&
295-
(!fsess_opt_writeback(vnode_mount(vp))))
295+
(!fsess_opt_writeback(mp)))
296296
return (0);
297297

298298
fdisp_init(&fdi, sizeof(*ffi));

0 commit comments

Comments
 (0)