mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
autofs4: Merge the remaining dentry ops tables
Merge the remaining autofs4 dentry ops tables. It doesn't matter if d_automount and d_manage are present on something that's not mountable or holdable as these ops are only used if the appropriate flags are set in dentry->d_flags. [AV] switch to ->s_d_op, since now _everything_ on autofs4 is using the same dentry_operations. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
ea5b778a8b
commit
b650c858c2
3 changed files with 4 additions and 20 deletions
|
@ -276,6 +276,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
|
|||
s->s_blocksize_bits = 10;
|
||||
s->s_magic = AUTOFS_SUPER_MAGIC;
|
||||
s->s_op = &autofs4_sops;
|
||||
s->s_d_op = &autofs4_dentry_operations;
|
||||
s->s_time_gran = 1;
|
||||
|
||||
/*
|
||||
|
@ -293,7 +294,6 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
|
|||
goto fail_iput;
|
||||
pipe = NULL;
|
||||
|
||||
d_set_d_op(root, &autofs4_dentry_operations);
|
||||
root->d_fsdata = ino;
|
||||
|
||||
/* Can this call block? */
|
||||
|
@ -304,10 +304,8 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
|
|||
goto fail_dput;
|
||||
}
|
||||
|
||||
if (autofs_type_trigger(sbi->type)) {
|
||||
d_set_d_op(root, &autofs4_mount_dentry_operations);
|
||||
if (autofs_type_trigger(sbi->type))
|
||||
__managed_dentry_set_managed(root);
|
||||
}
|
||||
|
||||
root_inode->i_fop = &autofs4_root_operations;
|
||||
root_inode->i_op = &autofs4_dir_inode_operations;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue