patch-2.4.7 linux/fs/reiserfs/do_balan.c

Next file: linux/fs/reiserfs/fix_node.c
Previous file: linux/fs/reiserfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/fs/reiserfs/do_balan.c linux/fs/reiserfs/do_balan.c
@@ -1626,7 +1626,7 @@
     for (i = 0; i < sizeof (tb->thrown)/sizeof (tb->thrown[0]); i ++)
 	if (!tb->thrown[i]) {
 	    tb->thrown[i] = bh;
-	    atomic_inc(&bh->b_count) ; /* decremented in free_thrown */
+	    get_bh(bh) ; /* free_thrown puts this */
 	    return;
 	}
     reiserfs_warning ("store_thrown: too many thrown buffers\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)