Whamcloud - gitweb
e2fsck: consistently use ext2fs_get_mem()
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 7 Feb 2020 01:09:45 +0000 (18:09 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Mar 2020 23:10:14 +0000 (18:10 -0500)
commit70303df16ca6fb5939b5091b9cef6fac378c87d7
tree1d27cc6e07f8f259013b77d2ee26bbeffde108ab
parent102993ec1c841ef9392652db5a7a546f470a1004
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.

[ Fix up library dependencies in e2fsck/Makefile.in to fix "make
  check" breakages. -- TYT ]

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Lustre-bug-id: https://jira.whamcloud.com/browse/LU-13197
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/Makefile.in
e2fsck/ea_refcount.c
e2fsck/emptydir.c
e2fsck/extend.c
e2fsck/extents.c
e2fsck/pass1b.c
e2fsck/region.c