]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: less function calls in ocfs2_convert_inline_data_to_extents() after error...
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 7 Apr 2015 23:43:51 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:51 +0000 (09:43 +1000)
commit3fdb17e6862916a4dfdc4cc3dc3f28b1fa3e7ab9
treec207167253d352ca01d9b7789cd9a008dc47fa5c
parentfd6ac168d727249ec1febdeaf9ecab3b49759f49
ocfs2: less function calls in ocfs2_convert_inline_data_to_extents() after error detection

kfree() was called in a few cases by
ocfs2_convert_inline_data_to_extents() during error handling even if the
passed variable "pages" contained a null pointer.

* Return from this implementation directly after failure detection for
  the function call "kcalloc".

* Corresponding details could be improved by the introduction of another
  jump label.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/alloc.c