jbd/jbd2: remove obsolete summarise_journal_usage.
authorTao Ma <boyu.mt@taobao.com>
Thu, 5 May 2011 15:54:19 +0000 (23:54 +0800)
committerJan Kara <jack@suse.cz>
Tue, 17 May 2011 11:47:42 +0000 (13:47 +0200)
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>
fs/jbd/commit.c
fs/jbd2/commit.c

index f486ff6977813bdc3f9ec009c57b75941f7a26d7..72ffa974b0b8d52852e25d7e016f7b4f1fc50b4a 100644 (file)
@@ -302,12 +302,6 @@ void journal_commit_transaction(journal_t *journal)
         * all outstanding updates to complete.
         */
 
-#ifdef COMMIT_STATS
-       spin_lock(&journal->j_list_lock);
-       summarise_journal_usage(journal);
-       spin_unlock(&journal->j_list_lock);
-#endif
-
        /* Do we need to erase the effects of a prior journal_flush? */
        if (journal->j_flags & JFS_FLUSHED) {
                jbd_debug(3, "super block updated\n");
index 6e28000a4b2168c36d1cee255058ac41b72f34eb..29148a81c783728928cf4ea63d46160cc5c4e85c 100644 (file)
@@ -338,12 +338,6 @@ void jbd2_journal_commit_transaction(journal_t *journal)
         * all outstanding updates to complete.
         */
 
-#ifdef COMMIT_STATS
-       spin_lock(&journal->j_list_lock);
-       summarise_journal_usage(journal);
-       spin_unlock(&journal->j_list_lock);
-#endif
-
        /* Do we need to erase the effects of a prior jbd2_journal_flush? */
        if (journal->j_flags & JBD2_FLUSHED) {
                jbd_debug(3, "super block updated\n");