return NULL;
}
-/* Look up a superblock metadata inode by its path. */
-STATIC int
-xfs_imeta_sb_lookup(
- struct xfs_mount *mp,
- const struct xfs_imeta_path *path,
- xfs_ino_t *inop)
-{
- xfs_ino_t *sb_inop;
-
- sb_inop = xfs_imeta_path_to_sb_inop(mp, path);
- if (!sb_inop)
- return -EINVAL;
-
- trace_xfs_imeta_sb_lookup(mp, sb_inop);
- *inop = *sb_inop;
- return 0;
-}
-
/* Update inode pointers in the superblock. */
static inline void
xfs_imeta_log_sb(
/* metadir ino is recorded in superblock */
if (xfs_imeta_path_compare(path, &XFS_IMETA_METADIR))
- return xfs_imeta_sb_lookup(tp->t_mountp, path, inop);
+ return tp->t_mountp->m_sb.sb_metadirino;
ASSERT(path->im_depth > 0);