From patchwork Wed Feb 7 02:56:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13548076 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24C4415E86 for ; Wed, 7 Feb 2024 02:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707274604; cv=none; b=CIh27pi2lo40Hwm5jnL6P711wu0ecl9etZFXgxZtjDBS7UR5hKPd1FLKlb1j0fZ524zBcBoQSFYjKqHwS3/9EZczZVwu4XmxJVAC7Iv+YS58Bn7Z3rjbPfygESpCV8idIqmIutJ8sFeN/WFjStyl0n/ZHU2ldHqpvL+uCCQE9TE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707274604; c=relaxed/simple; bh=9e/MXJft6EzmQOooxBh8r+OYNdKFUyEkGTtUvjDUC+s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ANm29KfIlFXNMFaQGNRr6lAt4vlcbIPdHeJw4Ac9YyeE6yv9PJv9624spiF3fWEV6b4U9yYFl/TGCEW3dPzOCUEOXtN5KyJi9Ol11yNYmMYZCz3Y4Vqy1/F6r3qKp4r9LZr23FnjcFQ7YuG8D6g6oc+ceX0ub8xO3eQSDIobNU8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ikPWdEbJ; arc=none smtp.client-ip=95.215.58.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ikPWdEbJ" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707274601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yl2gqkk+sAKRJz4hIi3mHc5lsx+eQ6R4/Q2FflhRIYg=; b=ikPWdEbJZ62qfNEl3mHPsRhcLZG2tQXOPfhoGBljkviPkYBOa7syPKDuB3C418Nju9qzlT 9DahmCfifwaIBw904JDU11GyKcPo53lWb5KHAggWLDsURptBiJ6iBQe+4fWlgQB9WmNtID tgg0jHl+ncnuxS5zLbSHUhIn1jEDR50= From: Kent Overstreet To: linux-fsdevel@vger.kernel.org, brauner@kernel.org Cc: Kent Overstreet , linux-btrfs@vger.kernel.org Subject: [PATCH v3 6/7] xfs: add support for FS_IOC_GETSYSFSNAME Date: Tue, 6 Feb 2024 21:56:20 -0500 Message-ID: <20240207025624.1019754-7-kent.overstreet@linux.dev> In-Reply-To: <20240207025624.1019754-1-kent.overstreet@linux.dev> References: <20240207025624.1019754-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Signed-off-by: Kent Overstreet --- fs/xfs/xfs_mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 4a46bc44088f..57fa21ad7912 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -706,6 +706,8 @@ xfs_mountfs( /* enable fail_at_unmount as default */ mp->m_fail_unmount = true; + super_set_sysfs_name_id(mp->m_super); + error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype, NULL, mp->m_super->s_id); if (error)