int error;
xfs_assert_ilocked(upd->dp, XFS_ILOCK_EXCL);
-
- /* metadir ino is recorded in superblock; only mkfs gets to do this */
- if (xfs_imeta_path_compare(upd->path, &XFS_IMETA_METADIR)) {
- error = xfs_imeta_sb_create(upd, mode);
- if (error)
- return error;
-
- /* Set the metadata iflag, initialize directory. */
- xfs_imeta_set_iflag(upd->tp, upd->ip);
- return xfs_dir_init(upd->tp, upd->ip, upd->ip);
- }
-
ASSERT(upd->path->im_depth > 0);
xfs_icreate_args_rootfile(&args, mp, mode, xfs_has_parent(mp));