diff options
Diffstat (limited to 'fs/ncpfs')
-rw-r--r-- | fs/ncpfs/dir.c | 4 | ||||
-rw-r--r-- | fs/ncpfs/inode.c | 2 |
2 files changed, 3 insertions, 3 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 | } |
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 60047dbeb38d..0c75a5f3cafd 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -717,7 +717,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
717 | sb->s_root = d_alloc_root(root_inode); | 717 | sb->s_root = d_alloc_root(root_inode); |
718 | if (!sb->s_root) | 718 | if (!sb->s_root) |
719 | goto out_no_root; | 719 | goto out_no_root; |
720 | sb->s_root->d_op = &ncp_root_dentry_operations; | 720 | d_set_d_op(sb->s_root, &ncp_root_dentry_operations); |
721 | return 0; | 721 | return 0; |
722 | 722 | ||
723 | out_no_root: | 723 | out_no_root: |