Date: Fri, 10 Jul 2020 09:01:36 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r363071 - head/sys/kern Message-ID: <202007100901.06A91a4C098726@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Fri Jul 10 09:01:36 2020 New Revision: 363071 URL: https://svnweb.freebsd.org/changeset/base/363071 Log: vfs: fix trivial whitespace issues which don't interefere with blame .. even without the -w switch Modified: head/sys/kern/vfs_acl.c head/sys/kern/vfs_bio.c head/sys/kern/vfs_cluster.c head/sys/kern/vfs_export.c head/sys/kern/vfs_hash.c head/sys/kern/vfs_init.c head/sys/kern/vfs_lookup.c head/sys/kern/vfs_mountroot.c head/sys/kern/vfs_subr.c head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_acl.c ============================================================================== --- head/sys/kern/vfs_acl.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_acl.c Fri Jul 10 09:01:36 2020 (r363071) @@ -89,7 +89,7 @@ acl_copy_oldacl_into_acl(const struct oldacl *source, if (source->acl_cnt < 0 || source->acl_cnt > OLDACL_MAX_ENTRIES) return (EINVAL); - + bzero(dest, sizeof(*dest)); dest->acl_cnt = source->acl_cnt; Modified: head/sys/kern/vfs_bio.c ============================================================================== --- head/sys/kern/vfs_bio.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_bio.c Fri Jul 10 09:01:36 2020 (r363071) @@ -1336,7 +1336,7 @@ bufshutdown(int show_busybufs) int subiter; #endif - /* + /* * Sync filesystems for shutdown */ wdog_kern_pat(WD_LASTVAL); @@ -1662,7 +1662,7 @@ buf_alloc(struct bufdomain *bd) if (BUF_LOCK(bp, LK_EXCLUSIVE | LK_NOWAIT, NULL) != 0) panic("getnewbuf_empty: Locked buf %p on free queue.", bp); - + KASSERT(bp->b_vp == NULL, ("bp: %p still has vnode %p.", bp, bp->b_vp)); KASSERT((bp->b_flags & (B_DELWRI | B_NOREUSE)) == 0, @@ -1798,7 +1798,7 @@ buf_recycle(struct bufdomain *bd, bool kva) * bremfree: * * Mark the buffer for removal from the appropriate free list. - * + * */ void bremfree(struct buf *bp) @@ -2473,7 +2473,7 @@ bdirty(struct buf *bp) * * Since the buffer is not on a queue, we do not update the numfreebuffers * count. - * + * * The buffer must be on QUEUE_NONE. */ @@ -2734,7 +2734,7 @@ brelse(struct buf *bp) if (bp->b_vp != NULL) brelvp(bp); } - + /* * If the buffer has junk contents signal it and eventually * clean up B_DELWRI and diassociate the vnode so that gbincore() @@ -3823,7 +3823,7 @@ getblk(struct vnode *vp, daddr_t blkno, int size, int * * getblk() also forces a bwrite() for any B_DELWRI buffer whose * B_CACHE bit is clear. - * + * * What this means, basically, is that the caller should use B_CACHE to * determine whether the buffer is fully valid or not and should clear * B_INVAL prior to issuing a read. If the caller intends to validate @@ -4334,7 +4334,7 @@ biowait(struct bio *bp, const char *wchan) void biofinish(struct bio *bp, struct devstat *stat, int error) { - + if (error) { bp->bio_error = error; bp->bio_flags |= BIO_ERROR; @@ -4660,7 +4660,7 @@ vfs_busy_pages(struct buf *bp, int clear_modify) * b_offset itself may be offset from the beginning of the first * page. */ -void +void vfs_bio_set_valid(struct buf *bp, int base, int size) { int i, n; Modified: head/sys/kern/vfs_cluster.c ============================================================================== --- head/sys/kern/vfs_cluster.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_cluster.c Fri Jul 10 09:01:36 2020 (r363071) @@ -173,7 +173,7 @@ cluster_read(struct vnode *vp, u_quad_t filesize, dadd LK_EXCLUSIVE | LK_NOWAIT, NULL))) { rbp->b_flags |= B_RAM; BUF_UNLOCK(rbp); - } + } } BO_RUNLOCK(bo); if (i >= maxra) { Modified: head/sys/kern/vfs_export.c ============================================================================== --- head/sys/kern/vfs_export.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_export.c Fri Jul 10 09:01:36 2020 (r363071) @@ -512,7 +512,7 @@ vfs_export_lookup(struct mount *mp, struct sockaddr *n * Verify that a host should have access to a filesystem. */ -int +int vfs_stdcheckexp(struct mount *mp, struct sockaddr *nam, uint64_t *extflagsp, struct ucred **credanonp, int *numsecflavors, int *secflavors) { Modified: head/sys/kern/vfs_hash.c ============================================================================== --- head/sys/kern/vfs_hash.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_hash.c Fri Jul 10 09:01:36 2020 (r363071) @@ -179,7 +179,6 @@ vfs_hash_insert(struct vnode *vp, u_int hash, int flag } if (vp2 == NULL) break; - } vp->v_hash = hash; LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); Modified: head/sys/kern/vfs_init.c ============================================================================== --- head/sys/kern/vfs_init.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_init.c Fri Jul 10 09:01:36 2020 (r363071) @@ -385,7 +385,7 @@ vfs_register(struct vfsconf *vfc) vattr_null(&va_null); once = 1; } - + if (vfc->vfc_version != VFS_VERSION) { printf("ERROR: filesystem %s, unsupported ABI version %x\n", vfc->vfc_name, vfc->vfc_version); Modified: head/sys/kern/vfs_lookup.c ============================================================================== --- head/sys/kern/vfs_lookup.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_lookup.c Fri Jul 10 09:01:36 2020 (r363071) @@ -709,7 +709,7 @@ lookup(struct nameidata *ndp) struct componentname *cnp = &ndp->ni_cnd; int lkflags_save; int ni_dvp_unlocked; - + /* * Setup: break out flag bits into variables. */ @@ -1302,7 +1302,7 @@ relookup(struct vnode *dvp, struct vnode **vpp, struct /* ASSERT(dvp == ndp->ni_startdir) */ if (cnp->cn_flags & SAVESTART) VREF(dvp); - + if ((cnp->cn_flags & LOCKLEAF) == 0) VOP_UNLOCK(dp); return (0); Modified: head/sys/kern/vfs_mountroot.c ============================================================================== --- head/sys/kern/vfs_mountroot.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_mountroot.c Fri Jul 10 09:01:36 2020 (r363071) @@ -1049,7 +1049,7 @@ vfs_mountroot(void) struct thread *td; time_t timebase; int error; - + mtx_assert(&Giant, MA_NOTOWNED); TSENTER(); Modified: head/sys/kern/vfs_subr.c ============================================================================== --- head/sys/kern/vfs_subr.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_subr.c Fri Jul 10 09:01:36 2020 (r363071) @@ -1482,7 +1482,7 @@ static struct kproc_desc vnlru_kp = { }; SYSINIT(vnlru, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &vnlru_kp); - + /* * Routines having to do with the management of the vnode table. */ Modified: head/sys/kern/vfs_vnops.c ============================================================================== --- head/sys/kern/vfs_vnops.c Fri Jul 10 07:26:50 2020 (r363070) +++ head/sys/kern/vfs_vnops.c Fri Jul 10 09:01:36 2020 (r363071) @@ -192,7 +192,7 @@ vn_open(struct nameidata *ndp, int *flagp, int cmode, * Common code for vnode open operations via a name lookup. * Lookup the vnode and invoke VOP_CREATE if needed. * Check permissions, and call the VOP_OPEN or VOP_CREATE routine. - * + * * Note that this does NOT free nameidata for the successful case, * due to the NDINIT being done elsewhere. */ @@ -1552,7 +1552,7 @@ vn_stat(struct vnode *vp, struct stat *sb, struct ucre sb->st_birthtim.tv_sec = vap->va_birthtime.tv_sec; sb->st_birthtim.tv_nsec = vap->va_birthtime.tv_nsec; - /* + /* * According to www.opengroup.org, the meaning of st_blksize is * "a filesystem-specific preferred I/O block size for this * object. In some filesystem types, this may vary from file @@ -1561,7 +1561,7 @@ vn_stat(struct vnode *vp, struct stat *sb, struct ucre */ sb->st_blksize = max(PAGE_SIZE, vap->va_blocksize); - + sb->st_flags = vap->va_flags; if (priv_check_cred_vfs_generation(td->td_ucred)) sb->st_gen = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007100901.06A91a4C098726>