From nobody Tue Apr 11 13:20:53 2023 X-Original-To: dev-commits-src-main@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 4PwmgV0v3gz44rY8; Tue, 11 Apr 2023 13:20:54 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PwmgT5b9hz3rQx; Tue, 11 Apr 2023 13:20:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681219253; 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=+yEfcjqgBvNx8Fu69x7SvjivZZciwtA6PanFJxQTxeE=; b=nnMONrVlS8r8AL7ayes7z8/M2FCglM/r/pmZN/5gGqBa1N3Sownnt/qWf3E355+Z/s6wcC hVhjHlP8JtpcRcsrdTaZgQ164H5pF9Sn4u8/RqAmp5GpCIBhxLxTXhYuDw/wKpaunoiHSv IJdwcniZ7iyWG5Y7KI5XX7q/7py9n0wtKKAckzuXYexuh/AX+y3MxKMo/Is5KXOFMm2umM oOyN112yLJGS6iUEfv3ei9uTWCz70Lcf4iiqDdqaBZaCVOIQub6cCYnz7aiDFc7GTLCs7t y4N1cZZL105gprZotpKZfjDWU/bELOHQKfhKrwgYpFb8KOTkyX9Wgh7kd8+6Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681219253; 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=+yEfcjqgBvNx8Fu69x7SvjivZZciwtA6PanFJxQTxeE=; b=srbZWc9bDgQtB6tKXjFMJ4lmF2dSCvR5d+0JWi9IZV7dzEVKmHEmQWyOke3RBvpGBAKmIQ GwN5GzeGQccHaslCPBYwqW1+CXExtHT4Q14oguD3OiKroRfiq/xp6okkh7N8ArajdP50AV aRhI8mF0ddjlJcCOdB6Ft3GN/0Mo7miTFp1Ej7RP1g2dbF1kspwI2AkAULD8nU0iiD01Fh vq6YNSDk57R9dLnBLFGvdCKYVKUFM4IQqIq16IPw+szvMSg3KZa6Dn35TyN/spA4TbDbKW B6f38Dp53GpK1VXKD25AomP26578SDTjmrFYq1fvRRZYVALaAZMYl/e+QeIPXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681219253; a=rsa-sha256; cv=none; b=Igek2lo1SfNuGgz0ITIaGRCqhHCd1XX2U2v6fZbBaMyO1HRFGyR74mP3AQyRKFw6v8V6iT XzxQqyCDwnaUsKxpeEkBsloHlMlgtGdjmzGQ07yOmwHykodctmkNAIYgn6kyxw1txumc54 LyM1pTgX2zOvJZC1HGO87g2x7IxKFVfE4Jqh/XIdr56zkXeUAA9uzBPuU5A//LeupSZLW+ yErDazPVqhn+JmYH8oYZlk0wfv/khE9El98HhKOMPSW7m5w4rRZxoMEPfhfuv6khQymGrp nQLSWQwYRQR7IdeWMDq1R2f2FSLHfHJivgBOQYkRhTrjw51hs48I9no/62wDSQ== 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 4PwmgT4b8YzJhG; Tue, 11 Apr 2023 13:20:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33BDKrIr010207; Tue, 11 Apr 2023 13:20:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33BDKrFq010206; Tue, 11 Apr 2023 13:20:53 GMT (envelope-from git) Date: Tue, 11 Apr 2023 13:20:53 GMT Message-Id: <202304111320.33BDKrFq010206@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: b2f32887475f - main - vn_start_write(): minor style List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2f32887475f3b25024d19aac9f4540dc959f90a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b2f32887475f3b25024d19aac9f4540dc959f90a commit b2f32887475f3b25024d19aac9f4540dc959f90a Author: Konstantin Belousov AuthorDate: 2023-04-09 22:41:12 +0000 Commit: Konstantin Belousov CommitDate: 2023-04-11 12:59:39 +0000 vn_start_write(): minor style Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39441 --- sys/kern/vfs_vnops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 05cc0cfda16e..122e53c0d9fb 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1880,17 +1880,17 @@ vn_start_write_refed(struct mount *mp, int flags, bool mplocked) } mflags |= (PUSER - 1); while ((mp->mnt_kern_flag & MNTK_SUSPEND) != 0) { - if (flags & V_NOWAIT) { + if ((flags & V_NOWAIT) != 0) { error = EWOULDBLOCK; goto unlock; } error = msleep(&mp->mnt_flag, MNT_MTX(mp), mflags, "suspfs", 0); - if (error) + if (error != 0) goto unlock; } } - if (flags & V_XSLEEP) + if ((flags & V_XSLEEP) != 0) goto unlock; mp->mnt_writeopcount++; unlock: @@ -1986,7 +1986,7 @@ vn_start_secondary_write(struct vnode *vp, struct mount **mpp, int flags) MNT_IUNLOCK(mp); return (0); } - if (flags & V_NOWAIT) { + if ((flags & V_NOWAIT) != 0) { MNT_REL(mp); MNT_IUNLOCK(mp); return (EWOULDBLOCK); @@ -1996,7 +1996,7 @@ vn_start_secondary_write(struct vnode *vp, struct mount **mpp, int flags) */ mflags = 0; if ((mp->mnt_vfc->vfc_flags & VFCF_SBDRY) != 0) { - if (flags & V_PCATCH) + if ((flags & V_PCATCH) != 0) mflags |= PCATCH; } mflags |= (PUSER - 1) | PDROP;