History

new helper: get_tree_keyed()

For vfs_get_keyed_super users.

Al Viro committed 7 years ago

Commit 533770c1 parent 1dd9bc06 files · +20 −9Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/fs_context.h+6−1
@@ -136,7 +136,7 @@ extern int vfs_get_tree(struct fs_context *fc); · 135 unmodified lines
136extern void put_fs_context(struct fs_context *fc);136extern void put_fs_context(struct fs_context *fc);
137 137
138/*138/*
139 * sget() wrapper to be called from the ->get_tree() op.139 * sget() wrappers to be called from the ->get_tree() op.
140 */140 */
141enum vfs_get_super_keying {141enum vfs_get_super_keying {
142 vfs_get_single_super, /* Only one such superblock may exist */142 vfs_get_single_super, /* Only one such superblock may exist */
@@ -147,12 +147,17 @@ extern int vfs_get_super(struct fs_context *fc, · 4 unmodified lines
147 enum vfs_get_super_keying keying,147 enum vfs_get_super_keying keying,
148 int (*fill_super)(struct super_block *sb,148 int (*fill_super)(struct super_block *sb,
149 struct fs_context *fc));149 struct fs_context *fc));
150
150extern int get_tree_nodev(struct fs_context *fc,151extern int get_tree_nodev(struct fs_context *fc,
151 int (*fill_super)(struct super_block *sb,152 int (*fill_super)(struct super_block *sb,
152 struct fs_context *fc));153 struct fs_context *fc));
153extern int get_tree_single(struct fs_context *fc,154extern int get_tree_single(struct fs_context *fc,
154 int (*fill_super)(struct super_block *sb,155 int (*fill_super)(struct super_block *sb,
155 struct fs_context *fc));156 struct fs_context *fc));
157extern int get_tree_keyed(struct fs_context *fc,
158 int (*fill_super)(struct super_block *sb,
159 struct fs_context *fc),
160 void *key);
156 161
157extern const struct file_operations fscontext_fops;162extern const struct file_operations fscontext_fops;
158 163

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t