Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
verify_locked(parent);
/* must initialize dentry operations */
- dentry->d_op = &unionfs_dops;
+ if (lookupmode == INTERPOSE_LOOKUP)
+ d_set_d_op(dentry, &unionfs_dops);
/* We never partial lookup the root directory. */
if (IS_ROOT(dentry))
* properly. Finally we must return this new
* dentry.
*/
- spliced->d_op = &unionfs_dops;
+ d_set_d_op(spliced, &unionfs_dops);
spliced->d_fsdata = dentry->d_fsdata;
dentry->d_fsdata = NULL;
dentry = spliced;
ret = d_alloc(NULL, &name);
if (likely(ret)) {
- ret->d_op = &unionfs_dops;
+ d_set_d_op(ret, &unionfs_dops);
ret->d_sb = sb;
ret->d_parent = ret;
}