android_kernel_xiaomi_sm8350/fs/jbd
Andrew Morton 304c4c841a [PATCH] jbd: avoid kfree(NULL)
There are a couple of places where JBD has to check to see whether an unneeded
memory allocation was performed.  Usually it _was_ needed, so we end up
calling kfree(NULL).  We can micro-optimise that by checking the pointer
before calling kfree().

Thanks to Steven Rostedt <rostedt@goodmis.org> for identifying this.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-23 07:43:05 -07:00
..
checkpoint.c [PATCH] sem2mutex: jbd, j_checkpoint_mutex 2006-03-23 07:38:12 -08:00
commit.c [PATCH] jbd: fix BUG in journal_commit_transaction() 2006-06-23 07:43:04 -07:00
journal.c [PATCH] jbd: convert kjournald to kthread API 2006-03-25 08:22:50 -08:00
Makefile
recovery.c
revoke.c
transaction.c [PATCH] jbd: avoid kfree(NULL) 2006-06-23 07:43:05 -07:00