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.
This commit is contained in:
parent
365073a062
commit
48fc2a0eac
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user