@@ -976,34 +976,21 @@ void jbd2_journal_commit_transaction(journal_t *journal)
976
976
* it. */
977
977
978
978
/*
979
- * A buffer which has been freed while still being journaled by
980
- * a previous transaction.
981
- */
982
- if (buffer_freed (bh )) {
983
- /*
984
- * If the running transaction is the one containing
985
- * "add to orphan" operation (b_next_transaction !=
986
- * NULL), we have to wait for that transaction to
987
- * commit before we can really get rid of the buffer.
988
- * So just clear b_modified to not confuse transaction
989
- * credit accounting and refile the buffer to
990
- * BJ_Forget of the running transaction. If the just
991
- * committed transaction contains "add to orphan"
992
- * operation, we can completely invalidate the buffer
993
- * now. We are rather through in that since the
994
- * buffer may be still accessible when blocksize <
995
- * pagesize and it is attached to the last partial
996
- * page.
997
- */
998
- jh -> b_modified = 0 ;
999
- if (!jh -> b_next_transaction ) {
1000
- clear_buffer_freed (bh );
1001
- clear_buffer_jbddirty (bh );
1002
- clear_buffer_mapped (bh );
1003
- clear_buffer_new (bh );
1004
- clear_buffer_req (bh );
1005
- bh -> b_bdev = NULL ;
1006
- }
979
+ * A buffer which has been freed while still being journaled
980
+ * by a previous transaction, refile the buffer to BJ_Forget of
981
+ * the running transaction. If the just committed transaction
982
+ * contains "add to orphan" operation, we can completely
983
+ * invalidate the buffer now. We are rather through in that
984
+ * since the buffer may be still accessible when blocksize <
985
+ * pagesize and it is attached to the last partial page.
986
+ */
987
+ if (buffer_freed (bh ) && !jh -> b_next_transaction ) {
988
+ clear_buffer_freed (bh );
989
+ clear_buffer_jbddirty (bh );
990
+ clear_buffer_mapped (bh );
991
+ clear_buffer_new (bh );
992
+ clear_buffer_req (bh );
993
+ bh -> b_bdev = NULL ;
1007
994
}
1008
995
1009
996
if (buffer_jbddirty (bh )) {
0 commit comments