Correct a softupdates bug, an ir_savebp buffer was not being properly
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 9 Nov 2004 04:22:52 +0000 (04:22 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 9 Nov 2004 04:22:52 +0000 (04:22 +0000)
commit7d618503edd8728be65a247663ade0a66024e737
tree3fde868e156e0e15566f4e31d66546d7a2c1f284
parentfb242d393624db48e41de17ad22471f9e41c52c0
Correct a softupdates bug, an ir_savebp buffer was not being properly
disposed of.  This bug is currently only known to effect filesystems
whos block devices are not VMIO backed.  However, it's a fragile situation
at best so its good to have it fixed anyhow.

ir_savebp is stashed copy of the in-memory version of an indirect file block.
It is stashed using (devvp,blkno) (whereas the actual indirect file block
is stored using (vp,-specialblkno).  For VMIO to also tickle this bug would
have required that other unrelated operations also cache (devvp,blkno), a
case which does not (yet) exist.
sys/vfs/ufs/ffs_softdep.c