Re: [PATCH] reiserfs b_count usage

Chris Mason (mason@suse.com)
Wed, 18 Jul 2001 12:00:45 -0400


On Wednesday, July 18, 2001 05:53:42 PM +0200 Andrea Arcangeli
<andrea@suse.de> wrote:

> On Wed, Jul 18, 2001 at 10:25:20AM -0400, Chris Mason wrote:
>> @@ -2597,7 +2599,7 @@
>>
>> if (bh) {
>> reiserfs_clean_and_file_buffer(bh) ;
>> - atomic_dec(&(bh->b_count)) ; /* get_hash incs this */
>> + put_bh(bh) ; /* get_hash grabs the buffer */
>> if (atomic_read(&(bh->b_count)) < 0) {
>> printk("journal-2165: bh->b_count < 0\n") ;
>> }
>
> in mainline you aren't calling reiserfs_clean_and_file_buffer above, so
> it rejects.

Correct, it goes cleanly on top of the direct->indirect cleanup patch that
was sent to l-k last week, and sent to linus for inclusion. ac already has
it, so it should apply there.

-chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/