]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: use library functions to reset root/rbm/rsum inodes
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:26:18 +0000 (18:26 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 11:15:28 +0000 (13:15 +0200)
commit6dc93b8b56dbb81633315d7cb0d21f4da7998357
tree800c2208caa4880109490edd508d6794be31732d
parentcb62b887de3ece222933c4b6033c8fac87702501
xfs_repair: use library functions to reset root/rbm/rsum inodes

Use the iroot reset function to reset root inodes instead of open-coding
the reset routine.  While we're at it, fix a longstanding memory leak if
the inode being reset actually had an xattr fork full of mappings.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/libxfs_api_defs.h
repair/phase6.c