From a907d8ac7fea79d70cec4440075f83b0a80cf96a Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 12 Apr 2024 07:33:33 +0200 Subject: [PATCH] xfs: remove the metadir root creation case in xfs_imeta_dir_create Source kernel commit: e2661d07c7e38c1739a5758a53eaf2bee42b2ca8 This code is only used by mkfs, where it will be reimplemented in the xfsprogs patches. Signed-off-by: Christoph Hellwig --- libxfs/xfs_imeta.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libxfs/xfs_imeta.c b/libxfs/xfs_imeta.c index a31d9c879..da4b64617 100644 --- a/libxfs/xfs_imeta.c +++ b/libxfs/xfs_imeta.c @@ -564,18 +564,6 @@ xfs_imeta_dir_create( 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)); -- 2.50.1