diff options
author | bde <bde@FreeBSD.org> | 1998-06-21 19:56:31 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-21 19:56:31 +0000 |
commit | b4385f0cee7fb50cf56462c51385eb14c3242b1a (patch) | |
tree | ae6436268ec7105d388de05842a119586faa5ab8 /sys/gnu | |
parent | 9e868cbb1a5b06375edb7e4a698644175f8f04f1 (diff) | |
download | FreeBSD-src-b4385f0cee7fb50cf56462c51385eb14c3242b1a.zip FreeBSD-src-b4385f0cee7fb50cf56462c51385eb14c3242b1a.tar.gz |
Removed unused function ll_w_block(). It has always had races due
to not using splbio(), and has rotted a little. The races were
probably harmless in practice because this function was only used
for superblock updates, and separate superblock updates are probably
prevented from running into each other by doing part of the update
synchronously.
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_extern.h | 1 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ext2_linux_ialloc.c | 18 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_extern.h | 1 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_linux_ialloc.c | 18 |
4 files changed, 0 insertions, 38 deletions
diff --git a/sys/gnu/ext2fs/ext2_extern.h b/sys/gnu/ext2fs/ext2_extern.h index 69340c8..eb18348 100644 --- a/sys/gnu/ext2fs/ext2_extern.h +++ b/sys/gnu/ext2fs/ext2_extern.h @@ -80,7 +80,6 @@ struct ext2_group_desc * get_group_desc __P((struct mount * , unsigned int , struct buf ** )); void ext2_discard_prealloc __P((struct inode *)); int ext2_inactive __P((struct vop_inactive_args *)); -int ll_w_block __P((struct buf *, int )); int ext2_new_block __P ((struct mount * mp, unsigned long goal, int * prealloc_count, int * prealloc_block)); diff --git a/sys/gnu/ext2fs/ext2_linux_ialloc.c b/sys/gnu/ext2fs/ext2_linux_ialloc.c index 14bcec2..d7f5bec 100644 --- a/sys/gnu/ext2fs/ext2_linux_ialloc.c +++ b/sys/gnu/ext2fs/ext2_linux_ialloc.c @@ -60,24 +60,6 @@ void mark_buffer_dirty(struct buf *bh) bh->b_flags &= ~(B_READ | B_ERROR); } -/* - this should write a buffer immediately w/o releasing it - */ -int ll_w_block(struct buf * bp, int waitfor) -{ - if (bp->b_flags & B_DELWRI) { - --numdirtybuffers; - if (needsbuffer) - vfs_bio_need_satisfy(); - } - bp->b_flags &= ~(B_READ|B_DONE|B_ERROR|B_DELWRI); - bp->b_flags |= B_WRITEINPROG; - bp->b_vp->v_numoutput++; - vfs_busy_pages(bp, 1); - VOP_STRATEGY(bp); - return waitfor ? biowait(bp) : 0; -} - struct ext2_group_desc * get_group_desc (struct mount * mp, unsigned int block_group, struct buffer_head ** bh) diff --git a/sys/gnu/fs/ext2fs/ext2_extern.h b/sys/gnu/fs/ext2fs/ext2_extern.h index 69340c8..eb18348 100644 --- a/sys/gnu/fs/ext2fs/ext2_extern.h +++ b/sys/gnu/fs/ext2fs/ext2_extern.h @@ -80,7 +80,6 @@ struct ext2_group_desc * get_group_desc __P((struct mount * , unsigned int , struct buf ** )); void ext2_discard_prealloc __P((struct inode *)); int ext2_inactive __P((struct vop_inactive_args *)); -int ll_w_block __P((struct buf *, int )); int ext2_new_block __P ((struct mount * mp, unsigned long goal, int * prealloc_count, int * prealloc_block)); diff --git a/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c b/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c index 14bcec2..d7f5bec 100644 --- a/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c +++ b/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c @@ -60,24 +60,6 @@ void mark_buffer_dirty(struct buf *bh) bh->b_flags &= ~(B_READ | B_ERROR); } -/* - this should write a buffer immediately w/o releasing it - */ -int ll_w_block(struct buf * bp, int waitfor) -{ - if (bp->b_flags & B_DELWRI) { - --numdirtybuffers; - if (needsbuffer) - vfs_bio_need_satisfy(); - } - bp->b_flags &= ~(B_READ|B_DONE|B_ERROR|B_DELWRI); - bp->b_flags |= B_WRITEINPROG; - bp->b_vp->v_numoutput++; - vfs_busy_pages(bp, 1); - VOP_STRATEGY(bp); - return waitfor ? biowait(bp) : 0; -} - struct ext2_group_desc * get_group_desc (struct mount * mp, unsigned int block_group, struct buffer_head ** bh) |