diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-22 08:47:20 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-22 08:47:20 +0000 |
commit | 494eb176e78fb8d2c808fe36ef4d2a8c84967eb7 (patch) | |
tree | bc42241b941aa567a6f2ea05e7900cd388eae620 /sys/gnu/fs/ext2fs | |
parent | c615d4bda1c34c93cb35ee12921517cac0209883 (diff) | |
download | src-494eb176e78fb8d2c808fe36ef4d2a8c84967eb7.tar.gz src-494eb176e78fb8d2c808fe36ef4d2a8c84967eb7.zip |
Add b_bufobj to struct buf which eventually will eliminate the need for b_vp.
Initialize b_bufobj for all buffers.
Make incore() and gbincore() take a bufobj instead of a vnode.
Make inmem() local to vfs_bio.c
Change a lot of VI_[UN]LOCK(bp->b_vp) to BO_[UN]LOCK(bp->b_bufobj)
also VI_MTX() to BO_MTX(),
Make buf_vlist_add() take a bufobj instead of a vnode.
Eliminate other uses of bp->b_vp where bp->b_bufobj will do.
Various minor polishing: remove "register", turn panic into KASSERT,
use new function declarations, TAILQ_FOREACH_SAFE() etc.
Notes
Notes:
svn path=/head/; revision=136767
Diffstat (limited to 'sys/gnu/fs/ext2fs')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_bmap.c b/sys/gnu/fs/ext2fs/ext2_bmap.c index 94db5818e145..7c0dfe57c818 100644 --- a/sys/gnu/fs/ext2fs/ext2_bmap.c +++ b/sys/gnu/fs/ext2fs/ext2_bmap.c @@ -171,7 +171,7 @@ ext2_bmaparray(vp, bn, bnp, runp, runb) */ metalbn = ap->in_lbn; - if ((daddr == 0 && !incore(vp, metalbn)) || metalbn == bn) + if ((daddr == 0 && !incore(&vp->v_bufobj, metalbn)) || metalbn == bn) break; /* * If we get here, we've either got the block in the cache |