summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorGrigoriy Orlov <gluk@cvs.openbsd.org>2001-03-09 23:09:19 +0000
committerGrigoriy Orlov <gluk@cvs.openbsd.org>2001-03-09 23:09:19 +0000
commit3f6f3a32b8b98cfe9354ad23197d951e4f6e801f (patch)
treee240ec8f41982deceb755d7a01d96e8229e61d07 /sys/ufs/ffs
parent33be67603bb7319416791870d21b9a8949b7f74f (diff)
fix comment,
convert spaces -> tabs
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_vnops.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 02e87bf79fc..c4319c8d537 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vnops.c,v 1.13 2001/03/01 20:54:36 provos Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.14 2001/03/09 23:09:18 gluk Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
@@ -87,7 +87,7 @@ struct vnodeopv_entry_desc ffs_vnodeop_entries[] = {
{ &vop_ioctl_desc, ufs_ioctl }, /* ioctl */
{ &vop_select_desc, ufs_select }, /* select */
{ &vop_kqfilter_desc, ufs_kqfilter }, /* kqfilter */
- { &vop_revoke_desc, ufs_revoke }, /* revoke */
+ { &vop_revoke_desc, ufs_revoke }, /* revoke */
{ &vop_mmap_desc, ufs_mmap }, /* mmap */
{ &vop_fsync_desc, ffs_fsync }, /* fsync */
{ &vop_seek_desc, ufs_seek }, /* seek */
@@ -112,7 +112,7 @@ struct vnodeopv_entry_desc ffs_vnodeop_entries[] = {
{ &vop_advlock_desc, ufs_advlock }, /* advlock */
{ &vop_blkatoff_desc, ffs_blkatoff }, /* blkatoff */
{ &vop_valloc_desc, ffs_valloc }, /* valloc */
- { &vop_balloc_desc, ffs_balloc }, /* balloc */
+ { &vop_balloc_desc, ffs_balloc }, /* balloc */
{ &vop_reallocblks_desc, ffs_reallocblks }, /* reallocblks */
{ &vop_vfree_desc, ffs_vfree }, /* vfree */
{ &vop_truncate_desc, ffs_truncate }, /* truncate */
@@ -163,7 +163,7 @@ struct vnodeopv_entry_desc ffs_specop_entries[] = {
{ &vop_islocked_desc, ufs_islocked }, /* islocked */
{ &vop_pathconf_desc, spec_pathconf }, /* pathconf */
{ &vop_advlock_desc, spec_advlock }, /* advlock */
- { &vop_vfree_desc, ffs_vfree }, /* vfree */
+ { &vop_vfree_desc, ffs_vfree }, /* vfree */
{ &vop_blkatoff_desc, spec_blkatoff }, /* blkatoff */
{ &vop_valloc_desc, spec_valloc }, /* valloc */
{ &vop_reallocblks_desc, spec_reallocblks }, /* reallocblks */
@@ -194,7 +194,7 @@ struct vnodeopv_entry_desc ffs_fifoop_entries[] = {
{ &vop_ioctl_desc, fifo_ioctl }, /* ioctl */
{ &vop_select_desc, fifo_select }, /* select */
{ &vop_kqfilter_desc, fifo_kqfilter }, /* kqfilter */
- { &vop_revoke_desc, fifo_revoke }, /* revoke */
+ { &vop_revoke_desc, fifo_revoke }, /* revoke */
{ &vop_mmap_desc, fifo_mmap }, /* mmap */
{ &vop_fsync_desc, ffs_fsync }, /* fsync */
{ &vop_seek_desc, fifo_seek }, /* seek */
@@ -217,7 +217,7 @@ struct vnodeopv_entry_desc ffs_fifoop_entries[] = {
{ &vop_islocked_desc, ufs_islocked }, /* islocked */
{ &vop_pathconf_desc, fifo_pathconf }, /* pathconf */
{ &vop_advlock_desc, fifo_advlock }, /* advlock */
- { &vop_vfree_desc, ffs_vfree }, /* vfree */
+ { &vop_vfree_desc, ffs_vfree }, /* vfree */
{ &vop_blkatoff_desc, fifo_blkatoff }, /* blkatoff */
{ &vop_valloc_desc, fifo_valloc }, /* valloc */
{ &vop_reallocblks_desc, fifo_reallocblks }, /* reallocblks */
@@ -263,7 +263,7 @@ ffs_fsync(v)
(vp->v_specmountpoint->mnt_flag & MNT_SOFTDEP))
softdep_fsync_mountdev(vp);
- /*
+ /*
* Flush all dirty buffers associated with a vnode
*/
passes = NIADDR;
@@ -302,33 +302,33 @@ loop2:
vwaitforio(vp, 0, "ffs_fsync", 0);
/*
- * Ensure that any filesystem metatdata associated
+ * Ensure that any filesystem metadata associated
* with the vnode has been written.
*/
splx(s);
if ((error = softdep_sync_metadata(ap)) != 0)
return (error);
s = splbio();
- if (vp->v_dirtyblkhd.lh_first) {
- /*
- * Block devices associated with filesystems may
- * have new I/O requests posted for them even if
- * the vnode is locked, so no amount of trying will
- * get them clean. Thus we give block devices a
- * good effort, then just give up. For all other file
- * types, go around and try again until it is clean.
- */
- if (passes > 0) {
- passes -= 1;
- goto loop2;
- }
+ if (vp->v_dirtyblkhd.lh_first) {
+ /*
+ * Block devices associated with filesystems may
+ * have new I/O requests posted for them even if
+ * the vnode is locked, so no amount of trying will
+ * get them clean. Thus we give block devices a
+ * good effort, then just give up. For all other file
+ * types, go around and try again until it is clean.
+ */
+ if (passes > 0) {
+ passes -= 1;
+ goto loop2;
+ }
#ifdef DIAGNOSTIC
- if (vp->v_type != VBLK)
- vprint("ffs_fsync: dirty", vp);
+ if (vp->v_type != VBLK)
+ vprint("ffs_fsync: dirty", vp);
#endif
- }
- }
- splx(s);
+ }
+ }
+ splx(s);
TIMEVAL_TO_TIMESPEC(&time, &ts);
return (VOP_UPDATE(vp, &ts, &ts, ap->a_waitfor == MNT_WAIT));
}