diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-02-23 14:52:53 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-02-23 14:52:53 +0000 |
commit | eeec1f347171a41707419e89deee7d71381aea55 (patch) | |
tree | 2a1bc87074ca0044ac111b494ffc6eb467896e11 /sys/ufs/ffs | |
parent | 96e821437735f981862bb50be47e2c291a615907 (diff) |
Change the B_DELWRI flag using buf_dirty and buf_undirty instead of
manually twiddling it. This allows the buffer cache to more easily
keep track of dirty buffers and decide when it is appropriate to speed
up the syncer.
Insipired by FreeBSD.
Look over by art@
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 12d9f631618..570beca3f30 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_softdep.c,v 1.12 2001/02/21 23:24:31 csapuntz Exp $ */ +/* $OpenBSD: ffs_softdep.c,v 1.13 2001/02/23 14:52:51 csapuntz Exp $ */ /* * Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved. * @@ -3231,7 +3231,7 @@ softdep_disk_write_complete(bp) WORKLIST_INSERT(&reattach, wk); if ((bp->b_flags & B_DELWRI) == 0) stat_indir_blk_ptrs++; - bdirty(bp); + buf_dirty(bp); continue; default: @@ -3390,7 +3390,7 @@ handle_written_inodeblock(inodedep, bp) inodedep->id_savedino = NULL; if ((bp->b_flags & B_DELWRI) == 0) stat_inode_bitmap++; - bdirty(bp); + buf_dirty(bp); return (1); } /* @@ -3439,7 +3439,7 @@ handle_written_inodeblock(inodedep, bp) * its correct form. */ if (hadchanges) - bdirty(bp); + buf_dirty(bp); /* * Process any allocdirects that completed during the update. */ @@ -3624,7 +3624,7 @@ handle_written_filepage(pagedep, bp) if (chgs) { if ((bp->b_flags & B_DELWRI) == 0) stat_dir_entry++; - bdirty(bp); + buf_dirty(bp); } /* * If no dependencies remain, the pagedep will be freed. |