summaryrefslogtreecommitdiffstats
path: root/fs/hostfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-01-12 16:47:00 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-01-12 20:03:42 -0500
commitf772c4a6a320ec25d94ba951881474eeef1b7f48 (patch)
tree8813eaf216b485e11ac55242629bac192ba80ce9 /fs/hostfs
parenta129880dafaa3c80eb0bae714da38088ccc2ce21 (diff)
downloadop-kernel-dev-f772c4a6a320ec25d94ba951881474eeef1b7f48.zip
op-kernel-dev-f772c4a6a320ec25d94ba951881474eeef1b7f48.tar.gz
switch hostfs
->d_delete() doesn't matter for s_root anyway Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hostfs')
-rw-r--r--fs/hostfs/hostfs_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index d3244d9..2638c834e 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -612,7 +612,6 @@ struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry,
goto out_put;
d_add(dentry, inode);
- d_set_d_op(dentry, &hostfs_dentry_ops);
return NULL;
out_put:
@@ -922,6 +921,7 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
sb->s_blocksize_bits = 10;
sb->s_magic = HOSTFS_SUPER_MAGIC;
sb->s_op = &hostfs_sbops;
+ sb->s_d_op = &hostfs_dentry_ops;
sb->s_maxbytes = MAX_LFS_FILESIZE;
/* NULL is printed as <NULL> by sprintf: avoid that. */
OpenPOWER on IntegriCloud