]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: remove various libxfs_device_to_fd calls
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:40 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:49 +0000 (14:57 +0100)
commit28cd682bef015170584ac6aa3fc0223cfd7c164f
tree1965224a7419222106042a53b2e36b3256805706
parent024b577aa8e7b43217e57f25585dc2617c1cc17b
xfs_repair: remove various libxfs_device_to_fd calls

A few places in xfs_repair call libxfs_device_to_fd to get the data
device fd from the data device dev_t stored in the libxfs_init
structure.  Just use the file descriptor stored right there directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
repair/xfs_repair.c