From nobody Mon Oct 6 08:31:25 2025 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8FE328C86D for ; Wed, 23 Jul 2025 13:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753276924; cv=none; b=o8HWrm1YS693bHMzhXuE8MscbpIpVLbKP5uia3iiFWUhg0hD/rhQ02ba7TcHiS54CGKGIlgDGqBtQ4k/RLLJJXHcyaTMKl9MTiYQblrEy03itGhb+MWRuqC7FuvYK4iOCMHZQEsdu2h5X0H6VXowcN/tG/gY8d8tBj/iqv+vamU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753276924; c=relaxed/simple; bh=C+v61yW3x8TfkFwWKjxhrz1QRhUdaQLWzodXnI6v4f0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FkLwu8vD6lR1May4lC8fOeBidfWvNeXmIfg/oQIWyZc5cdntH/4w2pboUn+KFEBKaDhEQtavZeeRHXUrPpwxzUvxDGFY2scthK+TMkwoBQtHS51mpxYanavy5azcYXDjBHnfsElt6Bf6J7KvV5RaEbDeWg5eFzmbi+VPYtGlFrg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=1e4Oh2Mc; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=FHBnnz8M; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=1e4Oh2Mc; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=FHBnnz8M; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="1e4Oh2Mc"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="FHBnnz8M"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="1e4Oh2Mc"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="FHBnnz8M" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 25EFC218EC; Wed, 23 Jul 2025 13:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1753276921; h=from:from:reply-to: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=jdakhAkbJUMr+z1tMZA2FYKLCFZQ2CzBklc3B+ZWaiM=; b=1e4Oh2Mc3Jyo44UZbYqdpo13yZXcviWq8/TRUivPurJo0vSnu8BnKjOfLfTo9uAvg1P8CM /CskdvkwwT1hg8q5LzTPbyfN450GtQnAH6iXa4JkAophRmHoaZMc/OScbfABsHWHZ7mCZM Y4F8MUmCqrvuoYnUPzEp31MPvBA4pt0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1753276921; h=from:from:reply-to: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=jdakhAkbJUMr+z1tMZA2FYKLCFZQ2CzBklc3B+ZWaiM=; b=FHBnnz8Myew+fNSInUEJHTgF4KCNBTaZn2+Fqfh2VA3tMrOQ18YragToJwTU95Tb8sYGW2 tqPSIFHlPh7xMoBw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1753276921; h=from:from:reply-to: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=jdakhAkbJUMr+z1tMZA2FYKLCFZQ2CzBklc3B+ZWaiM=; b=1e4Oh2Mc3Jyo44UZbYqdpo13yZXcviWq8/TRUivPurJo0vSnu8BnKjOfLfTo9uAvg1P8CM /CskdvkwwT1hg8q5LzTPbyfN450GtQnAH6iXa4JkAophRmHoaZMc/OScbfABsHWHZ7mCZM Y4F8MUmCqrvuoYnUPzEp31MPvBA4pt0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1753276921; h=from:from:reply-to: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=jdakhAkbJUMr+z1tMZA2FYKLCFZQ2CzBklc3B+ZWaiM=; b=FHBnnz8Myew+fNSInUEJHTgF4KCNBTaZn2+Fqfh2VA3tMrOQ18YragToJwTU95Tb8sYGW2 tqPSIFHlPh7xMoBw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 8314113ADD; Wed, 23 Jul 2025 13:22:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QFCyHPjhgGhnHwAAD6G6ig (envelope-from ); Wed, 23 Jul 2025 13:22:00 +0000 From: Pedro Falcato To: Alexander Viro , Christian Brauner , Jonathan Corbet Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Matthew Wilcox (Oracle)" , Pedro Falcato Subject: [PATCH 1/3] fs: Remove mount_nodev Date: Wed, 23 Jul 2025 14:21:54 +0100 Message-ID: <20250723132156.225410-2-pfalcato@suse.de> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250723132156.225410-1-pfalcato@suse.de> References: <20250723132156.225410-1-pfalcato@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Level: X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; RCVD_TLS_ALL(0.00)[] X-Spam-Flag: NO X-Spam-Score: -6.80 Content-Type: text/plain; charset="utf-8" mount_nodev has had no in-tree users since cc0876f817d6 ("vfs: Convert devpts to use the new mount API"). Remove it. Signed-off-by: Pedro Falcato --- fs/super.c | 20 -------------------- include/linux/fs.h | 3 --- 2 files changed, 23 deletions(-) diff --git a/fs/super.c b/fs/super.c index 7f876f32343a..7daa20737f2e 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1773,26 +1773,6 @@ void kill_block_super(struct super_block *sb) EXPORT_SYMBOL(kill_block_super); #endif =20 -struct dentry *mount_nodev(struct file_system_type *fs_type, - int flags, void *data, - int (*fill_super)(struct super_block *, void *, int)) -{ - int error; - struct super_block *s =3D sget(fs_type, NULL, set_anon_super, flags, NULL= ); - - if (IS_ERR(s)) - return ERR_CAST(s); - - error =3D fill_super(s, data, flags & SB_SILENT ? 1 : 0); - if (error) { - deactivate_locked_super(s); - return ERR_PTR(error); - } - s->s_flags |=3D SB_ACTIVE; - return dget(s->s_root); -} -EXPORT_SYMBOL(mount_nodev); - /** * vfs_get_tree - Get the mountable root * @fc: The superblock configuration context. diff --git a/include/linux/fs.h b/include/linux/fs.h index 0b2c567b0889..65bb19e457d8 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2716,9 +2716,6 @@ static inline bool is_mgtime(const struct inode *inod= e) extern struct dentry *mount_bdev(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, int (*fill_super)(struct super_block *, void *, int)); -extern struct dentry *mount_nodev(struct file_system_type *fs_type, - int flags, void *data, - int (*fill_super)(struct super_block *, void *, int)); extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path= ); void retire_super(struct super_block *sb); void generic_shutdown_super(struct super_block *sb); --=20 2.50.1 From nobody Mon Oct 6 08:31:25 2025 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EC172E8885 for ; Wed, 23 Jul 2025 13:22:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753276930; cv=none; b=pl0j2VB0zIwk9NDp6Ie4EebVBkWZQBZwA2xYmdH0moV3EJY5FA31fn2PmlxQB1SUFI87UBbsDcuq+SG9hhI/hreLUdm9AG37feRc0V597aUIFIV8AsHoS3PTEywpLw00gcX1RVuJan3CULOKjwYgdolzKl7/47VSMGs2vxL41Ic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753276930; c=relaxed/simple; bh=bllb9uHHyMTFtmt/5d2fX8e0rbRkg+5tT2YXQJE8gW8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bx/KjrzVK+53MSKv+xaVBQ4F1HU7VfwdCVsYb/57N7l0xmPVbaSXOcDqpfuj1YkD1Yvcp3JP9NFVcrWpAn6eJFX6mnnm0lOwJiKCRrdAHotuMj2xI7r8786HCcNpSCC259Hdwdc0NTbYFmtVhvD7s/EfYBOep5Gc9UbzCMHjmhI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D579A218F0; Wed, 23 Jul 2025 13:22:01 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3C06713302; Wed, 23 Jul 2025 13:22:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id eKJwC/nhgGhnHwAAD6G6ig (envelope-from ); Wed, 23 Jul 2025 13:22:01 +0000 From: Pedro Falcato To: Alexander Viro , Christian Brauner , Jonathan Corbet Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Matthew Wilcox (Oracle)" , Pedro Falcato Subject: [PATCH 2/3] fs: Remove mount_bdev Date: Wed, 23 Jul 2025 14:21:55 +0100 Message-ID: <20250723132156.225410-3-pfalcato@suse.de> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250723132156.225410-1-pfalcato@suse.de> References: <20250723132156.225410-1-pfalcato@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Spam-Flag: NO X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Rspamd-Queue-Id: D579A218F0 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spam-Score: -4.00 Content-Type: text/plain; charset="utf-8" mount_bdev has no in-tree users ever since f2fs adopted the new mount API. Remove it. Signed-off-by: Pedro Falcato --- fs/super.c | 43 ------------------------------------------- include/linux/fs.h | 3 --- 2 files changed, 46 deletions(-) diff --git a/fs/super.c b/fs/super.c index 7daa20737f2e..a038848e8d1f 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1716,49 +1716,6 @@ int get_tree_bdev(struct fs_context *fc, } EXPORT_SYMBOL(get_tree_bdev); =20 -static int test_bdev_super(struct super_block *s, void *data) -{ - return !(s->s_iflags & SB_I_RETIRED) && s->s_dev =3D=3D *(dev_t *)data; -} - -struct dentry *mount_bdev(struct file_system_type *fs_type, - int flags, const char *dev_name, void *data, - int (*fill_super)(struct super_block *, void *, int)) -{ - struct super_block *s; - int error; - dev_t dev; - - error =3D lookup_bdev(dev_name, &dev); - if (error) - return ERR_PTR(error); - - flags |=3D SB_NOSEC; - s =3D sget(fs_type, test_bdev_super, set_bdev_super, flags, &dev); - if (IS_ERR(s)) - return ERR_CAST(s); - - if (s->s_root) { - if ((flags ^ s->s_flags) & SB_RDONLY) { - deactivate_locked_super(s); - return ERR_PTR(-EBUSY); - } - } else { - error =3D setup_bdev_super(s, flags, NULL); - if (!error) - error =3D fill_super(s, data, flags & SB_SILENT ? 1 : 0); - if (error) { - deactivate_locked_super(s); - return ERR_PTR(error); - } - - s->s_flags |=3D SB_ACTIVE; - } - - return dget(s->s_root); -} -EXPORT_SYMBOL(mount_bdev); - void kill_block_super(struct super_block *sb) { struct block_device *bdev =3D sb->s_bdev; diff --git a/include/linux/fs.h b/include/linux/fs.h index 65bb19e457d8..a09e25841026 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2713,9 +2713,6 @@ static inline bool is_mgtime(const struct inode *inod= e) return inode->i_opflags & IOP_MGTIME; } =20 -extern struct dentry *mount_bdev(struct file_system_type *fs_type, - int flags, const char *dev_name, void *data, - int (*fill_super)(struct super_block *, void *, int)); extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path= ); void retire_super(struct super_block *sb); void generic_shutdown_super(struct super_block *sb); --=20 2.50.1 From nobody Mon Oct 6 08:31:25 2025 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB58E2E6D31 for ; Wed, 23 Jul 2025 13:22:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753276938; cv=none; b=Rlmzj3eKa6/zUhjGMkkMuZA3Hx0WQbLxUQ9z6Z1+7mk+y4SPb16Bo7MK+qr1SEse20LgvTx+/PiRHSPGKICjCB8dTXCfNL6aKr1U5PO/bZjefTnqhxWJS9458qakiP07qW7914eQtneLTeh+RC744ZhpC82gSQrvufE0hRyom5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753276938; c=relaxed/simple; bh=5zU8ZAr3SMvfuaM+8iY14N48D84esM2zsmKZnYPnEqQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UZ3YzeIK64TKnSo/wcbwr02o0BbmWM0X13e7o1Tw4+EYY0zNbEYUXUq8zBH6weWwTfJgD9S/hxoIYvMCHHj1BzwWy/4HmC0sFsod6puta0ScH0eRAJdS+tAVGCfkV749Z1j7ZDyBS8dDzSq/0wP7GYCHNS74QXyXS/KMwReQAMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=0o600WTr; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ICV017V2; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=0o600WTr; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ICV017V2; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="0o600WTr"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ICV017V2"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="0o600WTr"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ICV017V2" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9216E218F2; Wed, 23 Jul 2025 13:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1753276922; h=from:from:reply-to: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=sHb1UmULRkWstV5P4nMj+VxLK8zD/76FhrbXgXNQRUo=; b=0o600WTrhF7mqytOXsBYYI4hbogQkBaLYNkZh6yOhsRu0dzDfoThI2SzfeB1U184ufHj8G 7GbA+URz2VZXrHtSTbT36riHJWUSWhwFuAmShP1d5xNX71G6iq7hOCDBFGO9KRvcSbAe6q 9ZGwqoxN2M84b5EyhaTDeV/EBfiNu3E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1753276922; h=from:from:reply-to: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=sHb1UmULRkWstV5P4nMj+VxLK8zD/76FhrbXgXNQRUo=; b=ICV017V2+baXLLVaiY3mCil8ZmvkRtv3ETatf8BEsf8sZlpYy3ZZ3dz1BSSQSvJ5PPNrGf 4TzUZ+D2SO5FhHBQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1753276922; h=from:from:reply-to: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=sHb1UmULRkWstV5P4nMj+VxLK8zD/76FhrbXgXNQRUo=; b=0o600WTrhF7mqytOXsBYYI4hbogQkBaLYNkZh6yOhsRu0dzDfoThI2SzfeB1U184ufHj8G 7GbA+URz2VZXrHtSTbT36riHJWUSWhwFuAmShP1d5xNX71G6iq7hOCDBFGO9KRvcSbAe6q 9ZGwqoxN2M84b5EyhaTDeV/EBfiNu3E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1753276922; h=from:from:reply-to: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=sHb1UmULRkWstV5P4nMj+VxLK8zD/76FhrbXgXNQRUo=; b=ICV017V2+baXLLVaiY3mCil8ZmvkRtv3ETatf8BEsf8sZlpYy3ZZ3dz1BSSQSvJ5PPNrGf 4TzUZ+D2SO5FhHBQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id EC85813302; Wed, 23 Jul 2025 13:22:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id CJ1lNvnhgGhnHwAAD6G6ig (envelope-from ); Wed, 23 Jul 2025 13:22:01 +0000 From: Pedro Falcato To: Alexander Viro , Christian Brauner , Jonathan Corbet Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Matthew Wilcox (Oracle)" , Pedro Falcato Subject: [PATCH 3/3] docs/vfs: Remove mentions to the old mount API helpers Date: Wed, 23 Jul 2025 14:21:56 +0100 Message-ID: <20250723132156.225410-4-pfalcato@suse.de> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250723132156.225410-1-pfalcato@suse.de> References: <20250723132156.225410-1-pfalcato@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_RATELIMIT(0.00)[to_ip_from(RLw5gink3swc9hgcaooqib9oj6)]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Flag: NO X-Spam-Level: X-Spam-Score: -6.80 Content-Type: text/plain; charset="utf-8" Now that mount_bdev(), mount_nodev() and mount_single() have all been removed, remove mentions to them in vfs.rst. While we're at it, redirect people looking for mount API docs to mount_api.rst (which documents the newer API). Signed-off-by: Pedro Falcato --- Documentation/filesystems/vfs.rst | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystems/= vfs.rst index 94eba21265a1..af06144cf0fe 100644 --- a/Documentation/filesystems/vfs.rst +++ b/Documentation/filesystems/vfs.rst @@ -209,31 +209,8 @@ method fills in is the "s_op" field. This is a pointe= r to a "struct super_operations" which describes the next level of the filesystem implementation. =20 -Usually, a filesystem uses one of the generic mount() implementations -and provides a fill_super() callback instead. The generic variants are: - -``mount_bdev`` - mount a filesystem residing on a block device - -``mount_nodev`` - mount a filesystem that is not backed by a device - -``mount_single`` - mount a filesystem which shares the instance between all mounts - -A fill_super() callback implementation has the following arguments: - -``struct super_block *sb`` - the superblock structure. The callback must initialize this - properly. - -``void *data`` - arbitrary mount options, usually comes as an ASCII string (see - "Mount Options" section) - -``int silent`` - whether or not to be silent on error - +For more information on mounting (and the new mount API), see +Documentation/filesystems/mount_api.rst. =20 The Superblock Object =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 2.50.1