HAMMER 42A/Many: Stabilization.
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 22:17:43 +0000 (22:17 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 22:17:43 +0000 (22:17 +0000)
* Fix a double call to biodone() when attempting to flush front-end buffer
  cache buffers associated with a deleted file.  A return statement was
  missing.

sys/vfs/hammer/hammer_vnops.c

index 86a0058..6318535 100644 (file)
@@ -31,7 +31,7 @@
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * 
- * $DragonFly: src/sys/vfs/hammer/hammer_vnops.c,v 1.50 2008/05/09 07:26:51 dillon Exp $
+ * $DragonFly: src/sys/vfs/hammer/hammer_vnops.c,v 1.51 2008/05/09 22:17:43 dillon Exp $
  */
 
 #include <sys/param.h>
@@ -1898,6 +1898,7 @@ hammer_dowrite(hammer_cursor_t cursor, hammer_inode_t ip, struct bio *bio)
                bp->b_resid = 0;
                biodone(bio);
                --hammer_bio_count;
+               return(0);
        }
 
        /*