38 static int xfs_fileid_length(
int fileid_type)
40 switch (fileid_type) {
60 struct fid *
fid = (
struct fid *)fh;
79 if (!(
XFS_M(inode->
i_sb)->m_flags & XFS_MOUNT_SMALL_INUMS) ||
80 (
XFS_M(inode->
i_sb)->m_flags & XFS_MOUNT_32BITINODES))
89 len = xfs_fileid_length(fileid_type);
96 switch (fileid_type) {
98 fid->
i32.parent_ino = XFS_I(parent)->i_ino;
102 fid->
i32.ino = XFS_I(inode)->i_ino;
110 fid64->
ino = XFS_I(inode)->i_ino;
150 return ERR_PTR(-error);
153 if (ip->i_d.di_gen != generation) {
163 int fh_len,
int fileid_type)
168 if (fh_len < xfs_fileid_length(fileid_type))
171 switch (fileid_type) {
187 int fh_len,
int fileid_type)
192 if (fh_len < xfs_fileid_length(fileid_type))
195 switch (fileid_type) {
198 fid->
i32.parent_gen);
214 struct xfs_inode *cip;
218 return ERR_PTR(-error);
227 struct xfs_inode *
ip = XFS_I(inode);
228 struct xfs_mount *
mp = ip->i_mount;
233 lsn = ip->i_itemp->ili_last_lsn;