|
@@ -2152,6 +2152,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh,
|
|
|
|
|
|
if (!buffer_dirty(bh)) {
|
|
if (!buffer_dirty(bh)) {
|
|
/* bdflush has written it. We can drop it now */
|
|
/* bdflush has written it. We can drop it now */
|
|
|
|
+ __jbd2_journal_remove_checkpoint(jh);
|
|
goto zap_buffer;
|
|
goto zap_buffer;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2181,6 +2182,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh,
|
|
/* The orphan record's transaction has
|
|
/* The orphan record's transaction has
|
|
* committed. We can cleanse this buffer */
|
|
* committed. We can cleanse this buffer */
|
|
clear_buffer_jbddirty(bh);
|
|
clear_buffer_jbddirty(bh);
|
|
|
|
+ __jbd2_journal_remove_checkpoint(jh);
|
|
goto zap_buffer;
|
|
goto zap_buffer;
|
|
}
|
|
}
|
|
}
|
|
}
|