return -ENOENT;
/* Grab a new reference to the metadir root dir. */
- error = xfs_imeta_iget(tp, mp->m_metadirip->i_ino, XFS_DIR3_FT_DIR,
- &dp);
+ error = xfs_imeta_iget(tp, mp->m_metadirip->i_ino, S_IFDIR, &dp);
if (error)
return error;
* Grab the child inode while we still have the parent
* directory locked.
*/
- error = xfs_imeta_iget(tp, ino, XFS_DIR3_FT_DIR, &ip);
+ error = xfs_imeta_iget(tp, ino, S_IFDIR, &ip);
if (error)
goto out_rele;
int xfs_imeta_resv_init_inode(struct xfs_inode *ip, xfs_filblks_t ask);
/* Must be implemented by the libxfs client */
-int xfs_imeta_iget(struct xfs_trans *tp, xfs_ino_t ino, unsigned char ftype,
+int xfs_imeta_iget(struct xfs_trans *tp, xfs_ino_t ino, umode_t mode,
struct xfs_inode **ipp);
void xfs_imeta_irele(struct xfs_inode *ip);