summaryrefslogtreecommitdiff
path: root/drivers/staging/autofs/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/autofs/root.c')
-rw-r--r--drivers/staging/autofs/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/autofs/root.c b/drivers/staging/autofs/root.c
index 0fdec4befd84..b09adb57971f 100644
--- a/drivers/staging/autofs/root.c
+++ b/drivers/staging/autofs/root.c
@@ -237,7 +237,7 @@ static struct dentry *autofs_root_lookup(struct inode *dir, struct dentry *dentr
*
* We need to do this before we release the directory semaphore.
*/
- dentry->d_op = &autofs_dentry_operations;
+ d_set_d_op(dentry, &autofs_dentry_operations);
dentry->d_flags |= DCACHE_AUTOFS_PENDING;
d_add(dentry, NULL);