Skip to content

Commit 9199e66

Browse files
taoma-tmjankara
authored andcommitted
jbd/jbd2: remove obsolete summarise_journal_usage.
summarise_journal_usage seems to be obsolete for a long time, so remove it. Cc: Jan Kara <jack@suse.cz> Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 2842bb2 commit 9199e66

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

‎fs/jbd/commit.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,6 @@ void journal_commit_transaction(journal_t *journal)
302302
* all outstanding updates to complete.
303303
*/
304304

305-
#ifdef COMMIT_STATS
306-
spin_lock(&journal->j_list_lock);
307-
summarise_journal_usage(journal);
308-
spin_unlock(&journal->j_list_lock);
309-
#endif
310-
311305
/* Do we need to erase the effects of a prior journal_flush? */
312306
if (journal->j_flags & JFS_FLUSHED) {
313307
jbd_debug(3, "super block updated\n");

‎fs/jbd2/commit.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,6 @@ void jbd2_journal_commit_transaction(journal_t *journal)
338338
* all outstanding updates to complete.
339339
*/
340340

341-
#ifdef COMMIT_STATS
342-
spin_lock(&journal->j_list_lock);
343-
summarise_journal_usage(journal);
344-
spin_unlock(&journal->j_list_lock);
345-
#endif
346-
347341
/* Do we need to erase the effects of a prior jbd2_journal_flush? */
348342
if (journal->j_flags & JBD2_FLUSHED) {
349343
jbd_debug(3, "super block updated\n");

0 commit comments

Comments
 (0)