]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: clean up libxfs_destroy
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 27 Feb 2020 20:19:51 +0000 (15:19 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2020 20:19:51 +0000 (15:19 -0500)
commita9468486b859214560db69814ee9deea42631fb9
treef50e1c03283b654543a02d3150ea6411ce1be534
parent9d6023a856a1c4f84415dff59b0d5459cc8768db
libxfs: clean up libxfs_destroy

It's weird that libxfs_init opens the three devices passed in via the
libxfs_xinit structure but libxfs_destroy doesn't actually close them.
Fix this inconsistency and remove all the open-coded device closing.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
copy/xfs_copy.c
db/init.c
include/libxfs.h
libxfs/init.c
mkfs/xfs_mkfs.c
repair/xfs_repair.c