]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: split out handle management helpers a bit
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:49 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:03 +0000 (17:01 -0700)
Source kernel commit: b8c9d4253da43c02b287831f7e576568f24fbe58

Split out the functions that generate file/fs handles and map them back
into dentries in preparation for the GETPARENTS ioctl next.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_fs.h

index 53526fca7386ce0e3ad901d4903f297cf7e5d239..97384ab95de431433c4af3f0c7d91b2300ba2bd9 100644 (file)
@@ -633,7 +633,9 @@ typedef struct xfs_fsop_attrmulti_handlereq {
 /*
  * per machine unique filesystem identifier types.
  */
-typedef struct { __u32 val[2]; } xfs_fsid_t; /* file system id type */
+typedef struct xfs_fsid {
+       __u32   val[2];                 /* file system id type */
+} xfs_fsid_t;
 
 typedef struct xfs_fid {
        __u16   fid_len;                /* length of remainder  */