aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r--fs/autofs4/root.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index 10ca68a96dc7..bfe3f2eb684d 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -571,7 +571,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
571 * we check for the hashed dentry and return the newly 571 * we check for the hashed dentry and return the newly
572 * hashed dentry. 572 * hashed dentry.
573 */ 573 */
574 dentry->d_op = &autofs4_root_dentry_operations; 574 d_set_d_op(dentry, &autofs4_root_dentry_operations);
575 575
576 /* 576 /*
577 * And we need to ensure that the same dentry is used for 577 * And we need to ensure that the same dentry is used for
@@ -710,9 +710,9 @@ static int autofs4_dir_symlink(struct inode *dir,
710 d_add(dentry, inode); 710 d_add(dentry, inode);
711 711
712 if (dir == dir->i_sb->s_root->d_inode) 712 if (dir == dir->i_sb->s_root->d_inode)
713 dentry->d_op = &autofs4_root_dentry_operations; 713 d_set_d_op(dentry, &autofs4_root_dentry_operations);
714 else 714 else
715 dentry->d_op = &autofs4_dentry_operations; 715 d_set_d_op(dentry, &autofs4_dentry_operations);
716 716
717 dentry->d_fsdata = ino; 717 dentry->d_fsdata = ino;
718 ino->dentry = dget(dentry); 718 ino->dentry = dget(dentry);
@@ -845,9 +845,9 @@ static int autofs4_dir_mkdir(struct inode *dir, struct dentry *dentry, int mode)
845 d_add(dentry, inode); 845 d_add(dentry, inode);
846 846
847 if (dir == dir->i_sb->s_root->d_inode) 847 if (dir == dir->i_sb->s_root->d_inode)
848 dentry->d_op = &autofs4_root_dentry_operations; 848 d_set_d_op(dentry, &autofs4_root_dentry_operations);
849 else 849 else
850 dentry->d_op = &autofs4_dentry_operations; 850 d_set_d_op(dentry, &autofs4_dentry_operations);
851 851
852 dentry->d_fsdata = ino; 852 dentry->d_fsdata = ino;
853 ino->dentry = dget(dentry); 853 ino->dentry = dget(dentry);