summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_export.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-22 09:47:55 -0700
committerDarrick J. Wong <djwong@kernel.org>2024-04-23 07:47:00 -0700
commit233f4e12bbb2c5fb1588b857336a26e8bb6942af (patch)
tree6ec6cc2104abc262138fce488ccc614201e32973 /fs/xfs/xfs_export.h
parentb8c9d4253da43c02b287831f7e576568f24fbe58 (diff)
downloadlinux-233f4e12bbb2c5fb1588b857336a26e8bb6942af.tar.gz
linux-233f4e12bbb2c5fb1588b857336a26e8bb6942af.tar.bz2
linux-233f4e12bbb2c5fb1588b857336a26e8bb6942af.zip
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>
Diffstat (limited to 'fs/xfs/xfs_export.h')
-rw-r--r--fs/xfs/xfs_export.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_export.h b/fs/xfs/xfs_export.h
index 64471a3ddb04..3cd85e8901a5 100644
--- a/fs/xfs/xfs_export.h
+++ b/fs/xfs/xfs_export.h
@@ -57,4 +57,6 @@ struct xfs_fid64 {
/* This flag goes on the wire. Don't play with it. */
#define XFS_FILEID_TYPE_64FLAG 0x80 /* NFS fileid has 64bit inodes */
+struct inode *xfs_nfs_get_inode(struct super_block *sb, u64 ino, u32 gen);
+
#endif /* __XFS_EXPORT_H__ */