mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
pass default dentry_operations to mount_pseudo()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f772c4a6a3
commit
c74a1cbb3c
8 changed files with 40 additions and 33 deletions
|
|
@ -217,7 +217,8 @@ static const struct super_operations simple_super_operations = {
|
|||
* will never be mountable)
|
||||
*/
|
||||
struct dentry *mount_pseudo(struct file_system_type *fs_type, char *name,
|
||||
const struct super_operations *ops, unsigned long magic)
|
||||
const struct super_operations *ops,
|
||||
const struct dentry_operations *dops, unsigned long magic)
|
||||
{
|
||||
struct super_block *s = sget(fs_type, NULL, set_anon_super, NULL);
|
||||
struct dentry *dentry;
|
||||
|
|
@ -254,6 +255,7 @@ struct dentry *mount_pseudo(struct file_system_type *fs_type, char *name,
|
|||
dentry->d_parent = dentry;
|
||||
d_instantiate(dentry, root);
|
||||
s->s_root = dentry;
|
||||
s->s_d_op = dops;
|
||||
s->s_flags |= MS_ACTIVE;
|
||||
return dget(s->s_root);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue