Message ID | 1453252038-31915-34-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index ff2f2e6..72efc81 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@ -2058,6 +2058,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh, if (!buffer_dirty(bh)) { /* bdflush has written it. We can drop it now */ + __jbd2_journal_remove_checkpoint(jh); goto zap_buffer; } @@ -2087,6 +2088,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh, /* The orphan record's transaction has * committed. We can cleanse this buffer */ clear_buffer_jbddirty(bh); + __jbd2_journal_remove_checkpoint(jh); goto zap_buffer; } }