From e486988b33bb6da0a399eef4dc40a6cd0c4e944b Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 6 Sep 2011 00:10:31 -0400 Subject: [PATCH] Wrapfs: use d_set_d_op Signed-off-by: Erez Zadok --- fs/wrapfs/lookup.c | 2 +- fs/wrapfs/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/wrapfs/lookup.c b/fs/wrapfs/lookup.c index 594c16bd01f6..21820d9aaf8a 100644 --- a/fs/wrapfs/lookup.c +++ b/fs/wrapfs/lookup.c @@ -272,7 +272,7 @@ static struct dentry *__wrapfs_lookup(struct dentry *dentry, int flags, struct qstr this; /* must initialize dentry operations */ - dentry->d_op = &wrapfs_dops; + d_set_d_op(dentry, &wrapfs_dops); if (IS_ROOT(dentry)) goto out; diff --git a/fs/wrapfs/main.c b/fs/wrapfs/main.c index 6281840432ce..19fc07444925 100644 --- a/fs/wrapfs/main.c +++ b/fs/wrapfs/main.c @@ -30,7 +30,7 @@ static struct dentry *wrapfs_d_alloc_root(struct super_block *sb) ret = d_alloc(NULL, &name); if (ret) { - ret->d_op = &wrapfs_dops; + d_set_d_op(ret, &wrapfs_dops); ret->d_sb = sb; ret->d_parent = ret; } -- 2.43.0