summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 20:55:04 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 20:55:04 -1000
commit58aeff92eebcad28da1f01e6d16b04794f7ea4f2 (patch)
tree9ceea49313805a436cc83ec978b79b2af2c5793f /include/linux
parenta6656aefd328d544420ecec121fc898b7f067827 (diff)
parentab3c5140acb36ecc02d5408b99aaaa5648f2ba1f (diff)
downloadlinux-next-58aeff92eebcad28da1f01e6d16b04794f7ea4f2.tar.gz
linux-next-58aeff92eebcad28da1f01e6d16b04794f7ea4f2.zip
Merge tag 'vfs-7.4-rc1.shared.super' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
Pull superblock updates from Christian Brauner: "This renames vfs_get_super() to get_tree_super() and exports it so a filesystem that needs its own superblock matching policy can reuse it instead of open-coding sget_fc() plus fill_super(). erofs uses it to share a superblock between file-backed mounts" * tag 'vfs-7.4-rc1.shared.super' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: fs: rename vfs_get_super() to get_tree_super() and export it
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs_context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fs_context.h b/include/linux/fs_context.h
index 0d6c8a6d7be2..d1727dffecc5 100644
--- a/include/linux/fs_context.h
+++ b/include/linux/fs_context.h
@@ -150,6 +150,10 @@ extern int vfs_parse_fs_param_source(struct fs_context *fc,
struct fs_parameter *param);
extern void fc_drop_locked(struct fs_context *fc);
+int get_tree_super(struct fs_context *fc,
+ int (*test)(struct super_block *, struct fs_context *),
+ int (*fill_super)(struct super_block *sb,
+ struct fs_context *fc));
extern int get_tree_nodev(struct fs_context *fc,
int (*fill_super)(struct super_block *sb,
struct fs_context *fc));