Re: [PATCH] jbd2: remove the conditional test
From: Theodore Y. Ts'o
Date: Sun May 20 2018 - 21:46:14 EST
On Mon, Feb 05, 2018 at 10:24:39PM +0800, Wang Long wrote:
> kmem_cache_destroy already handles null pointers, so we can remove the
> conditional test entirely.
>
> This patch also set NULL after the kmem_cache_destroy in function
> jbd2_journal_destroy_handle_cache.
>
> Signed-off-by: Wang Long <wanglong19@xxxxxxxxxxx>
Thanks; I clarified the patch summary to be:
jbd2: remove NULL check before calling kmem_cache_destroy()
and have applied it. Apologies for not getting to this earlier.
- Ted