History

new helper: mount_subtree()

takes vfsmount and relative path, does lookup within that vfsmount (possibly triggering automounts) and returns the result as root of subtree suitable for return by ->mount() (i.e. a reference to dentry and an active reference to its superblock grabbed, superblock locked exclusive). btrfs and nfs switched to it instead of open-coding the sucker.

Al Viro committed 15 years ago

Commit ea441d11 parent c1334494 files · +41 −53Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/fs.h+1−0
@@ -1886,6 +1886,7 @@ extern struct dentry *mount_single(struct file_system_type *fs_type, · 1885 unmodified lines
18861886 extern struct dentry *mount_nodev(struct file_system_type *fs_type,
18871887 int flags, void *data,
18881888 int (*fill_super)(struct super_block *, void *, int));
1889+extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
18891890 void generic_shutdown_super(struct super_block *sb);
18901891 void kill_block_super(struct super_block *sb);
18911892 void kill_anon_super(struct super_block *sb);

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