From nobody Tue Oct 14 12:05:32 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cmCbJ2s8fz6CJvK; Tue, 14 Oct 2025 12:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmCbJ2MKnz3C38; Tue, 14 Oct 2025 12:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760443532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A9HUDJCbm3S0xcHKfldm0BUY945vOGP8ILR+MlOfTMo=; b=T4OrMckAU9WoJTHpaRCAf0l7nD5qDRMw/QWMVXjHs3AV/xZvFLb4O2j066Ovi1PV7XrWRQ qSSvTH3WEOu7TbvY1wmLlN3zm54Nc1NoXOuoAo/DaH/Z/6wxsLjiqDMiTrjeiMyxycWzg6 6LqVW2qccwcx5WBZwB+zys68bx3tUzP2MJUDYiSgnks7vbUSspP9q5aUq6fGAvdVsBBgQD iwiAXlzeW4Jj+9AxaPUv9v6pHhR1YVJRaoxieH1ucEl9M+zKDgsaIchSWN6OKeffaHcqDV hwnrdCVL3fRsW7aLI9TGLXh1XVP1pAubykKnPW6SPva/UjcrzryqC07OBg8CJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760443532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A9HUDJCbm3S0xcHKfldm0BUY945vOGP8ILR+MlOfTMo=; b=dFZUrqqhyXezOREbFA0di89FdgjgYQ4MKsjViY/i2GrSg/bEpQnRZAPvwJwXhRe2ktICXR CUkKsN9yCoBz/c7fw/0+lH5+VlAMIIqEuEFDFCSAgXA4iiSiQBlm94bj2J1uyRnpc7T3OC 3oOAToDzxPqIr3KgOkdxhtw3rTqpBhbbHhFRS4fxFTI80D/uwgrk97uYn0eZlR679L57AL /u5CW2IySvqOhPulmkkN1uJsVsgQUcrTpzdAaIe3ij4P3NF0ixhQh4eTR9loorkaP2pwj2 Kk20FxJZeMaCkc9EFgFr7QW45V7iJ4NB4Glou9CdBeReTTYiIw3kK5kOYKkPOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760443532; a=rsa-sha256; cv=none; b=m8cNfZj0/CZzi98byFSS781sZ+P9/XFAypEHjtLlp+wO3t/P2WPezVOpZx1IMn3T6BwbUC 84c8jXQ1NHklUZnlfqw62SuLJHZwHqObhAcY+UJmJO+EEamd0zBTPcTMtPFV/y3xZXlttx Pp9KxmDjig9g4N1HtzQzonQZI6FSAZdqa0Mhsjt85QoR+xd5FZkhFC0/54W0+HpSU0uoQo GORuojEMS1b1j/cwgyJyOAaosUjYqXEwcZnh15K5ZKoDynKi2A7w1szC1U4L3mPP/FHhhu +qxVUy6mQMPIr5+dOdhuhZ+ofCoQVfpWmIP4iUZrDT4+WFw8NrrHUcUHVlwjKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cmCbJ1ddSzsFV; Tue, 14 Oct 2025 12:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59EC5WIA082897; Tue, 14 Oct 2025 12:05:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59EC5WA2082894; Tue, 14 Oct 2025 12:05:32 GMT (envelope-from git) Date: Tue, 14 Oct 2025 12:05:32 GMT Message-Id: <202510141205.59EC5WA2082894@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Popov Subject: git: af30e8d90b77 - main - fuse_flush: Reuse the struct mount *mp variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af30e8d90b772c0997da013b17e67a64841282ac Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/src/commit/?id=af30e8d90b772c0997da013b17e67a64841282ac commit af30e8d90b772c0997da013b17e67a64841282ac Author: Gleb Popov AuthorDate: 2025-10-14 09:24:27 +0000 Commit: Gleb Popov 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));