summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-07-10 09:01:36 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-07-10 09:01:36 +0000
commit422f38d8ea13ed8f0247561cf3fdcd71d93ccdfc (patch)
treee1d0f77d3e36af603fb41222f8adb7e20b6a79c5 /sys/kern
parentfb5f5a17ef0a4c25c8f1110c8f4f3f417dfaba01 (diff)
downloadsrc-test2-422f38d8ea13ed8f0247561cf3fdcd71d93ccdfc.tar.gz
src-test2-422f38d8ea13ed8f0247561cf3fdcd71d93ccdfc.zip
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_acl.c2
-rw-r--r--sys/kern/vfs_bio.c16
-rw-r--r--sys/kern/vfs_cluster.c2
-rw-r--r--sys/kern/vfs_export.c2
-rw-r--r--sys/kern/vfs_hash.c1
-rw-r--r--sys/kern/vfs_init.c2
-rw-r--r--sys/kern/vfs_lookup.c4
-rw-r--r--sys/kern/vfs_mountroot.c2
-rw-r--r--sys/kern/vfs_subr.c2
-rw-r--r--sys/kern/vfs_vnops.c6
10 files changed, 19 insertions, 20 deletions
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c
index aeefd21b3748..6bae01bd9d85 100644
--- a/sys/kern/vfs_acl.c
+++ b/sys/kern/vfs_acl.c
@@ -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;
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 26bd4d7b84d8..9d5d543fbc7e 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -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;
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 68e0d00c9954..5dfbb9f113be 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -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) {
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 329729871278..1dfdbcf67764 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -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)
{
diff --git a/sys/kern/vfs_hash.c b/sys/kern/vfs_hash.c
index f3e12df9c130..082d166cbf9a 100644
--- a/sys/kern/vfs_hash.c
+++ b/sys/kern/vfs_hash.c
@@ -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);
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index cbc8bb56ab3e..3365ddb11474 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -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);
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 999747539d4f..fa58f7576cea 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -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);
diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index d368eeb3bb65..f17c9c45dbc6 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -1049,7 +1049,7 @@ vfs_mountroot(void)
struct thread *td;
time_t timebase;
int error;
-
+
mtx_assert(&Giant, MA_NOTOWNED);
TSENTER();
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 64da0d6fb973..5f964c534dfe 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -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.
*/
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 2900effc2d02..cfc6eaf36d6f 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -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;