diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2023-04-09 22:41:12 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2023-04-11 12:59:39 +0000 |
commit | b2f32887475f3b25024d19aac9f4540dc959f90a (patch) | |
tree | 1ab0f4df5071bb71de7ede0ef9743a937842d18e | |
parent | 37f4cb29bdafa33ec46f505fb5b769bafddcac74 (diff) | |
download | src-b2f32887475f3b25024d19aac9f4540dc959f90a.tar.gz src-b2f32887475f3b25024d19aac9f4540dc959f90a.zip |
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
-rw-r--r-- | sys/kern/vfs_vnops.c | 10 |
1 files 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; |