mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
VFS: Unexport do_kern_mount() and clean up simple_pin_fs()
Replace all module uses with the new vfs_kern_mount() interface, and fix up simple_pin_fs(). Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
bb4a58bf46
commit
1f5ce9e93a
14 changed files with 17 additions and 16 deletions
|
@ -55,6 +55,7 @@ typedef struct {
|
|||
} Node;
|
||||
|
||||
static DEFINE_RWLOCK(entries_lock);
|
||||
static struct file_system_type bm_fs_type;
|
||||
static struct vfsmount *bm_mnt;
|
||||
static int entry_count;
|
||||
|
||||
|
@ -638,7 +639,7 @@ static ssize_t bm_register_write(struct file *file, const char __user *buffer,
|
|||
if (!inode)
|
||||
goto out2;
|
||||
|
||||
err = simple_pin_fs("binfmt_misc", &bm_mnt, &entry_count);
|
||||
err = simple_pin_fs(&bm_fs_type, &bm_mnt, &entry_count);
|
||||
if (err) {
|
||||
iput(inode);
|
||||
inode = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue