提交 f772c4a6 编写于 作者: A Al Viro

switch hostfs

->d_delete() doesn't matter for s_root anyway
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 a129880d
...@@ -612,7 +612,6 @@ struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry, ...@@ -612,7 +612,6 @@ struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry,
goto out_put; goto out_put;
d_add(dentry, inode); d_add(dentry, inode);
d_set_d_op(dentry, &hostfs_dentry_ops);
return NULL; return NULL;
out_put: out_put:
...@@ -922,6 +921,7 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent) ...@@ -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_blocksize_bits = 10;
sb->s_magic = HOSTFS_SUPER_MAGIC; sb->s_magic = HOSTFS_SUPER_MAGIC;
sb->s_op = &hostfs_sbops; sb->s_op = &hostfs_sbops;
sb->s_d_op = &hostfs_dentry_ops;
sb->s_maxbytes = MAX_LFS_FILESIZE; sb->s_maxbytes = MAX_LFS_FILESIZE;
/* NULL is printed as <NULL> by sprintf: avoid that. */ /* NULL is printed as <NULL> by sprintf: avoid that. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册