1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

vfs: fix trivial whitespace issues which don't interefere with blame

.. even without the -w switch
This commit is contained in:
Mateusz Guzik 2020-07-10 09:01:36 +00:00
parent fb5f5a17ef
commit 422f38d8ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363071
10 changed files with 19 additions and 20 deletions

View File

@ -89,7 +89,7 @@ acl_copy_oldacl_into_acl(const struct oldacl *source, struct acl *dest)
if (source->acl_cnt < 0 || source->acl_cnt > OLDACL_MAX_ENTRIES)
return (EINVAL);
bzero(dest, sizeof(*dest));
dest->acl_cnt = source->acl_cnt;

View File

@ -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 slpflag, int slptimeo,
*
* 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;

View File

@ -173,7 +173,7 @@ cluster_read(struct vnode *vp, u_quad_t filesize, daddr_t lblkno, long size,
LK_EXCLUSIVE | LK_NOWAIT, NULL))) {
rbp->b_flags |= B_RAM;
BUF_UNLOCK(rbp);
}
}
}
BO_RUNLOCK(bo);
if (i >= maxra) {

View File

@ -512,7 +512,7 @@ vfs_export_lookup(struct mount *mp, struct sockaddr *nam)
* 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)
{

View File

@ -179,7 +179,6 @@ vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td,
}
if (vp2 == NULL)
break;
}
vp->v_hash = hash;
LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist);

View File

@ -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);

View File

@ -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 componentname *cnp)
/* ASSERT(dvp == ndp->ni_startdir) */
if (cnp->cn_flags & SAVESTART)
VREF(dvp);
if ((cnp->cn_flags & LOCKLEAF) == 0)
VOP_UNLOCK(dp);
return (0);

View File

@ -1049,7 +1049,7 @@ vfs_mountroot(void)
struct thread *td;
time_t timebase;
int error;
mtx_assert(&Giant, MA_NOTOWNED);
TSENTER();

View File

@ -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.
*/

View File

@ -192,7 +192,7 @@ vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp)
* 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 ucred *active_cred,
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 ucred *active_cred,
*/
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;