]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/binfmt_misc.c
[PATCH] VFS: Permit filesystem to override root dentry on mount
[net-next-2.6.git] / fs / binfmt_misc.c
index d73d75591a3966125003fdc8e6edebca1d7cc5e3..07a4996cca3f76c03a1a6434decc88f0dacfdc42 100644 (file)
@@ -203,7 +203,6 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs)
                goto _error;
 
        if (files) {
-               steal_locks(files);
                put_files_struct(files);
                files = NULL;
        }
@@ -740,10 +739,10 @@ static int bm_fill_super(struct super_block * sb, void * data, int silent)
        return err;
 }
 
-static struct super_block *bm_get_sb(struct file_system_type *fs_type,
-       int flags, const char *dev_name, void *data)
+static int bm_get_sb(struct file_system_type *fs_type,
+       int flags, const char *dev_name, void *data, struct vfsmount *mnt)
 {
-       return get_sb_single(fs_type, flags, data, bm_fill_super);
+       return get_sb_single(fs_type, flags, data, bm_fill_super, mnt);
 }
 
 static struct linux_binfmt misc_format = {