[XFS] cleanup fid types mess
Currently XFs has three different fid types: struct fid, struct xfs_fid and struct xfs_fid2 with hte latter two beeing identicaly and the first one beeing the same size but an unstructured array with the same size. This patch consolidates all this to alway uuse struct xfs_fid. This patch is required for an upcoming patch series from me that revamps the nfs exporting code and introduces a Linux-wide struct fid. SGI-PV: 970336 SGI-Modid: xfs-linux-melb:xfs-kern:29651a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:
committed by
Tim Shimmin
parent
c8fcfac5a2
commit
c6143911a7
@ -71,13 +71,13 @@ xfs_fileid_length(int hasparent, int is64)
|
||||
|
||||
/*
|
||||
* Decode encoded inode information (either for the inode itself
|
||||
* or the parent) into an xfs_fid2_t structure. Advances and
|
||||
* or the parent) into an xfs_fid_t structure. Advances and
|
||||
* returns the new data pointer
|
||||
*/
|
||||
static inline __u32 *
|
||||
xfs_fileid_decode_fid2(__u32 *p, xfs_fid2_t *fid, int is64)
|
||||
xfs_fileid_decode_fid2(__u32 *p, xfs_fid_t *fid, int is64)
|
||||
{
|
||||
fid->fid_len = sizeof(xfs_fid2_t) - sizeof(fid->fid_len);
|
||||
fid->fid_len = sizeof(xfs_fid_t) - sizeof(fid->fid_len);
|
||||
fid->fid_pad = 0;
|
||||
fid->fid_ino = *p++;
|
||||
#if XFS_BIG_INUMS
|
||||
|
Reference in New Issue
Block a user