diff options
Diffstat (limited to 'fs/ncpfs/dir.c')
-rw-r--r-- | fs/ncpfs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 0ba3cdc95a44..4b9cbb28d7fa 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c | |||
@@ -633,7 +633,7 @@ ncp_fill_cache(struct file *filp, void *dirent, filldir_t filldir, | |||
633 | entry->ino = iunique(dir->i_sb, 2); | 633 | entry->ino = iunique(dir->i_sb, 2); |
634 | inode = ncp_iget(dir->i_sb, entry); | 634 | inode = ncp_iget(dir->i_sb, entry); |
635 | if (inode) { | 635 | if (inode) { |
636 | newdent->d_op = &ncp_dentry_operations; | 636 | d_set_d_op(newdent, &ncp_dentry_operations); |
637 | d_instantiate(newdent, inode); | 637 | d_instantiate(newdent, inode); |
638 | if (!hashed) | 638 | if (!hashed) |
639 | d_rehash(newdent); | 639 | d_rehash(newdent); |
@@ -889,7 +889,7 @@ static struct dentry *ncp_lookup(struct inode *dir, struct dentry *dentry, struc | |||
889 | if (inode) { | 889 | if (inode) { |
890 | ncp_new_dentry(dentry); | 890 | ncp_new_dentry(dentry); |
891 | add_entry: | 891 | add_entry: |
892 | dentry->d_op = &ncp_dentry_operations; | 892 | d_set_d_op(dentry, &ncp_dentry_operations); |
893 | d_add(dentry, inode); | 893 | d_add(dentry, inode); |
894 | error = 0; | 894 | error = 0; |
895 | } | 895 | } |