`numdirtybuffers' was not maintained properly. This caused excessive
flushing of buffers in an attempt to reduce numdirtybuffers, and perhaps other problems.
This commit is contained in:
@@ -53,8 +53,10 @@
|
||||
*/
|
||||
void mark_buffer_dirty(struct buf *bh)
|
||||
{
|
||||
numdirtybuffers++;
|
||||
bh->b_flags |= B_DELWRI;
|
||||
if (!(bh->b_flags & B_DELWRI)) {
|
||||
numdirtybuffers++;
|
||||
bh->b_flags |= B_DELWRI;
|
||||
}
|
||||
bh->b_flags &= ~(B_READ | B_ERROR);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,8 +53,10 @@
|
||||
*/
|
||||
void mark_buffer_dirty(struct buf *bh)
|
||||
{
|
||||
numdirtybuffers++;
|
||||
bh->b_flags |= B_DELWRI;
|
||||
if (!(bh->b_flags & B_DELWRI)) {
|
||||
numdirtybuffers++;
|
||||
bh->b_flags |= B_DELWRI;
|
||||
}
|
||||
bh->b_flags &= ~(B_READ | B_ERROR);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user