[Midnightbsd-cvs] src [9418] trunk: Some style fixes
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Mar 4 17:50:10 EST 2017
Revision: 9418
http://svnweb.midnightbsd.org/src/?rev=9418
Author: laffer1
Date: 2017-03-04 17:50:10 -0500 (Sat, 04 Mar 2017)
Log Message:
-----------
Some style fixes
Modified Paths:
--------------
trunk/UPDATING
trunk/sys/kern/vfs_bio.c
trunk/sys/kern/vfs_cluster.c
trunk/sys/ufs/ffs/ffs_balloc.c
trunk/sys/vm/vnode_pager.c
Modified: trunk/UPDATING
===================================================================
--- trunk/UPDATING 2017-03-04 22:48:42 UTC (rev 9417)
+++ trunk/UPDATING 2017-03-04 22:50:10 UTC (rev 9418)
@@ -145,8 +145,8 @@
pools. The first two read-only compatible "feature flags" for ZFS
pools are "com.delphix:async_destroy" and "com.delphix:empty_bpobj".
For more information read the new zpool-features(7) manual page.
- Please refer to the "ZFS notes" section of this file for information
- on upgrading boot ZFS pools.
+ Please refer to the "ZFS notes" section of this file for information
+ on upgrading boot ZFS pools.
20160906:
Add support for the MosChip MCS9904 four serial ports
Modified: trunk/sys/kern/vfs_bio.c
===================================================================
--- trunk/sys/kern/vfs_bio.c 2017-03-04 22:48:42 UTC (rev 9417)
+++ trunk/sys/kern/vfs_bio.c 2017-03-04 22:50:10 UTC (rev 9418)
@@ -855,9 +855,8 @@
* getblk(). Also starts asynchronous I/O on read-ahead blocks.
*/
int
-breadn_flags(struct vnode * vp, daddr_t blkno, int size,
- daddr_t * rablkno, int *rabsize, int cnt,
- struct ucred * cred, int flags, struct buf **bpp)
+breadn_flags(struct vnode *vp, daddr_t blkno, int size, daddr_t *rablkno,
+ int *rabsize, int cnt, struct ucred *cred, int flags, struct buf **bpp)
{
struct buf *bp;
int rv = 0, readwait = 0;
@@ -1844,7 +1843,7 @@
nwritten = bp->b_bufsize;
(void) bwrite(bp);
- return nwritten;
+ return (nwritten);
}
/*
@@ -2678,7 +2677,7 @@
* prior to issuing the READ. biodone() will *not* clear B_INVAL.
*/
struct buf *
-getblk(struct vnode * vp, daddr_t blkno, int size, int slpflag, int slptimeo,
+getblk(struct vnode *vp, daddr_t blkno, int size, int slpflag, int slptimeo,
int flags)
{
struct buf *bp;
@@ -2752,9 +2751,8 @@
BO_UNLOCK(bo);
/*
- * check for size inconsistancies for non-VMIO case.
+ * check for size inconsistencies for non-VMIO case.
*/
-
if (bp->b_bcount != size) {
if ((bp->b_flags & B_VMIO) == 0 ||
(size > bp->b_kvasize)) {
Modified: trunk/sys/kern/vfs_cluster.c
===================================================================
--- trunk/sys/kern/vfs_cluster.c 2017-03-04 22:48:42 UTC (rev 9417)
+++ trunk/sys/kern/vfs_cluster.c 2017-03-04 22:50:10 UTC (rev 9418)
@@ -581,7 +581,7 @@
{
int r = 0;
- switch(write_behind) {
+ switch (write_behind) {
case 2:
if (start_lbn < len)
break;
Modified: trunk/sys/ufs/ffs/ffs_balloc.c
===================================================================
--- trunk/sys/ufs/ffs/ffs_balloc.c 2017-03-04 22:48:42 UTC (rev 9417)
+++ trunk/sys/ufs/ffs/ffs_balloc.c 2017-03-04 22:50:10 UTC (rev 9418)
@@ -681,9 +681,9 @@
if (osize < fs->fs_bsize && osize > 0) {
UFS_LOCK(ump);
error = ffs_realloccg(ip, nb, dp->di_db[nb],
- ffs_blkpref_ufs2(ip, lastlbn, (int)nb,
- &dp->di_db[0]), osize, (int)fs->fs_bsize,
- flags, cred, &bp);
+ ffs_blkpref_ufs2(ip, lastlbn, (int)nb,
+ &dp->di_db[0]), osize, (int)fs->fs_bsize,
+ flags, cred, &bp);
if (error)
return (error);
if (DOINGSOFTDEP(vp))
@@ -735,7 +735,7 @@
UFS_LOCK(ump);
error = ffs_realloccg(ip, lbn, dp->di_db[lbn],
ffs_blkpref_ufs2(ip, lbn, (int)lbn,
- &dp->di_db[0]), osize, nsize, flags,
+ &dp->di_db[0]), osize, nsize, flags,
cred, &bp);
if (error)
return (error);
Modified: trunk/sys/vm/vnode_pager.c
===================================================================
--- trunk/sys/vm/vnode_pager.c 2017-03-04 22:48:42 UTC (rev 9417)
+++ trunk/sys/vm/vnode_pager.c 2017-03-04 22:50:10 UTC (rev 9418)
@@ -908,7 +908,7 @@
}
bp = getpbuf(&vnode_pbuf_freecnt);
- kva = (vm_offset_t) bp->b_data;
+ kva = (vm_offset_t)bp->b_data;
/*
* and map the pages to be read into the kva
More information about the Midnightbsd-cvs
mailing list