diff options
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index d3244d949a4e..2638c834ed28 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, | |||
612 | goto out_put; | 612 | goto out_put; |
613 | 613 | ||
614 | d_add(dentry, inode); | 614 | d_add(dentry, inode); |
615 | d_set_d_op(dentry, &hostfs_dentry_ops); | ||
616 | return NULL; | 615 | return NULL; |
617 | 616 | ||
618 | out_put: | 617 | out_put: |
@@ -922,6 +921,7 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent) | |||
922 | sb->s_blocksize_bits = 10; | 921 | sb->s_blocksize_bits = 10; |
923 | sb->s_magic = HOSTFS_SUPER_MAGIC; | 922 | sb->s_magic = HOSTFS_SUPER_MAGIC; |
924 | sb->s_op = &hostfs_sbops; | 923 | sb->s_op = &hostfs_sbops; |
924 | sb->s_d_op = &hostfs_dentry_ops; | ||
925 | sb->s_maxbytes = MAX_LFS_FILESIZE; | 925 | sb->s_maxbytes = MAX_LFS_FILESIZE; |
926 | 926 | ||
927 | /* NULL is printed as <NULL> by sprintf: avoid that. */ | 927 | /* NULL is printed as <NULL> by sprintf: avoid that. */ |