Whamcloud - gitweb
LU-13197 e2fsck: consistently use ext2fs_get_mem() 41/37441/7 v1.45.2.wc2-lustre v1.45.2.wc2
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 5 Feb 2020 04:35:01 +0000 (21:35 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 24 May 2020 16:05:44 +0000 (16:05 +0000)
commitcad09f5e6107df65f7927a1d8e104de74cbb16d5
tree4c8f314dea11ac493afec182dc65cd826a81539d
parent9450cab0c2398871f026afcb56a3eab02ed78b40
LU-13197 e2fsck: consistently use ext2fs_get_mem()

Consistently use ext2fs_get_mem() and ext2fs_free_mem() instead of
calling malloc() and free() directly in e2fsck.  In several places
it is possible to use ext2fs_get_memzero() instead of explicitly
calling memset() on the memory afterward.

This is just a code cleanup, and does not fix any specific bugs.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I1c0943da43299c187936bb28db5423ce3e3ebbe5
Reviewed-on: https://review.whamcloud.com/37441
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
e2fsck/Makefile.in
e2fsck/ea_refcount.c
e2fsck/emptydir.c
e2fsck/extend.c
e2fsck/extents.c
e2fsck/pass1b.c
e2fsck/region.c