diff options
author | mckusick <mckusick@FreeBSD.org> | 1999-05-14 01:29:21 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 1999-05-14 01:29:21 +0000 |
commit | 48fc2a0eac056f026c6372e97d6c2a38e56f3a76 (patch) | |
tree | b5a38bf951ec04119f9d8f052870cb17ac552bc3 /sys | |
parent | 365073a06237ea141cd366f9bde9185622f845f0 (diff) | |
download | FreeBSD-src-48fc2a0eac056f026c6372e97d6c2a38e56f3a76.zip FreeBSD-src-48fc2a0eac056f026c6372e97d6c2a38e56f3a76.tar.gz |
Previously directories were sync'ed every 10 seconds while bitmaps &
inodes were synced every 15 seconds. This is now reversed as during
directory create, we cannot commit the directory entry until its
inode has been written. With this switch, the inodes will be more
likely to be written by the time that the directory is written thus
reducing the number of directory rollbacks that are needed.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_export.c | 6 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 42a7d04..30d31b9 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.195 1999/05/12 11:06:07 phk Exp $ + * $Id: vfs_subr.c,v 1.196 1999/05/12 19:06:40 peter Exp $ */ /* @@ -1116,11 +1116,11 @@ reassignbuf(bp, newvp) if ((newvp->v_flag & VONWORKLST) == 0) { switch (newvp->v_type) { case VDIR: - delay = syncdelay / 3; + delay = syncdelay / 2; break; case VBLK: if (newvp->v_specmountpoint != NULL) { - delay = syncdelay / 2; + delay = syncdelay / 3; break; } /* fall through */ diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 42a7d04..30d31b9 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.195 1999/05/12 11:06:07 phk Exp $ + * $Id: vfs_subr.c,v 1.196 1999/05/12 19:06:40 peter Exp $ */ /* @@ -1116,11 +1116,11 @@ reassignbuf(bp, newvp) if ((newvp->v_flag & VONWORKLST) == 0) { switch (newvp->v_type) { case VDIR: - delay = syncdelay / 3; + delay = syncdelay / 2; break; case VBLK: if (newvp->v_specmountpoint != NULL) { - delay = syncdelay / 2; + delay = syncdelay / 3; break; } /* fall through */ |