xfs: add parent pointer ioctls
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:47:55 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:00 +0000 (07:47 -0700)
commit233f4e12bbb2c5fb1588b857336a26e8bb6942af
tree6ec6cc2104abc262138fce488ccc614201e32973
parentb8c9d4253da43c02b287831f7e576568f24fbe58
xfs: add parent pointer ioctls

This patch adds a pair of new file ioctls to retrieve the parent pointer
of a given inode.  They both return the same results, but one operates
on the file descriptor passed to ioctl() whereas the other allows the
caller to specify a file handle for which the caller wants results.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_fs.h
fs/xfs/libxfs/xfs_ondisk.h
fs/xfs/libxfs/xfs_parent.c
fs/xfs/libxfs/xfs_parent.h
fs/xfs/xfs_export.c
fs/xfs/xfs_export.h
fs/xfs/xfs_handle.c
fs/xfs/xfs_handle.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_trace.c
fs/xfs/xfs_trace.h