]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: pass the device fd to discard_blocks
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:39 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:49 +0000 (14:57 +0100)
commit024b577aa8e7b43217e57f25585dc2617c1cc17b
tree432457bbd3ca87b25c398a108bf75ca44810f366
parent652683748da1333dee33f6d8634f33d294923bb8
libxfs: pass the device fd to discard_blocks

No need to do a dev_t to fd lookup when the caller already has the fd.

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>
mkfs/xfs_mkfs.c