git: b2f32887475f - main - vn_start_write(): minor style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Apr 2023 13:20:53 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b2f32887475f3b25024d19aac9f4540dc959f90a commit b2f32887475f3b25024d19aac9f4540dc959f90a Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-04-09 22:41:12 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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;