diff options
-rw-r--r-- | fs/jbd2/journal.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index eb7eb6c27bcb..2dbf23e82c6f 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -1976,9 +1976,10 @@ static int journal_init_jbd2_journal_head_cache(void) | |||
1976 | 1976 | ||
1977 | static void jbd2_journal_destroy_jbd2_journal_head_cache(void) | 1977 | static void jbd2_journal_destroy_jbd2_journal_head_cache(void) |
1978 | { | 1978 | { |
1979 | J_ASSERT(jbd2_journal_head_cache != NULL); | 1979 | if (jbd2_journal_head_cache) { |
1980 | kmem_cache_destroy(jbd2_journal_head_cache); | 1980 | kmem_cache_destroy(jbd2_journal_head_cache); |
1981 | jbd2_journal_head_cache = NULL; | 1981 | jbd2_journal_head_cache = NULL; |
1982 | } | ||
1982 | } | 1983 | } |
1983 | 1984 | ||
1984 | /* | 1985 | /* |