--- buffercache-get_bh/fs/buffer.c.~1~ Tue Jul 10 17:18:46 2001 +++ buffercache-get_bh/fs/buffer.c Tue Jul 10 17:21:58 2001 @@ -233,10 +233,10 @@ continue; if (test_and_set_bit(BH_Lock, &bh->b_state)) continue; - get_bh(bh); if (atomic_set_buffer_clean(bh)) { __refile_buffer(bh); array[count++] = bh; + get_bh(bh); if (count < NRSYNC) continue; @@ -245,7 +245,6 @@ goto repeat; } unlock_buffer(bh); - put_bh(bh); } spin_unlock(&lru_list_lock);