aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r--fs/9p/vfs_inode.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index f6f9081e6d2c..df8bbb358d54 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -635,9 +635,9 @@ v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir,
635 } 635 }
636 636
637 if (v9ses->cache) 637 if (v9ses->cache)
638 dentry->d_op = &v9fs_cached_dentry_operations; 638 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
639 else 639 else
640 dentry->d_op = &v9fs_dentry_operations; 640 d_set_d_op(dentry, &v9fs_dentry_operations);
641 641
642 d_instantiate(dentry, inode); 642 d_instantiate(dentry, inode);
643 err = v9fs_fid_add(dentry, fid); 643 err = v9fs_fid_add(dentry, fid);
@@ -749,7 +749,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,
749 err); 749 err);
750 goto error; 750 goto error;
751 } 751 }
752 dentry->d_op = &v9fs_cached_dentry_operations; 752 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
753 d_instantiate(dentry, inode); 753 d_instantiate(dentry, inode);
754 err = v9fs_fid_add(dentry, fid); 754 err = v9fs_fid_add(dentry, fid);
755 if (err < 0) 755 if (err < 0)
@@ -767,7 +767,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,
767 err = PTR_ERR(inode); 767 err = PTR_ERR(inode);
768 goto error; 768 goto error;
769 } 769 }
770 dentry->d_op = &v9fs_dentry_operations; 770 d_set_d_op(dentry, &v9fs_dentry_operations);
771 d_instantiate(dentry, inode); 771 d_instantiate(dentry, inode);
772 } 772 }
773 /* Now set the ACL based on the default value */ 773 /* Now set the ACL based on the default value */
@@ -956,7 +956,7 @@ static int v9fs_vfs_mkdir_dotl(struct inode *dir,
956 err); 956 err);
957 goto error; 957 goto error;
958 } 958 }
959 dentry->d_op = &v9fs_cached_dentry_operations; 959 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
960 d_instantiate(dentry, inode); 960 d_instantiate(dentry, inode);
961 err = v9fs_fid_add(dentry, fid); 961 err = v9fs_fid_add(dentry, fid);
962 if (err < 0) 962 if (err < 0)
@@ -973,7 +973,7 @@ static int v9fs_vfs_mkdir_dotl(struct inode *dir,
973 err = PTR_ERR(inode); 973 err = PTR_ERR(inode);
974 goto error; 974 goto error;
975 } 975 }
976 dentry->d_op = &v9fs_dentry_operations; 976 d_set_d_op(dentry, &v9fs_dentry_operations);
977 d_instantiate(dentry, inode); 977 d_instantiate(dentry, inode);
978 } 978 }
979 /* Now set the ACL based on the default value */ 979 /* Now set the ACL based on the default value */
@@ -1041,9 +1041,9 @@ static struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
1041 1041
1042inst_out: 1042inst_out:
1043 if (v9ses->cache) 1043 if (v9ses->cache)
1044 dentry->d_op = &v9fs_cached_dentry_operations; 1044 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
1045 else 1045 else
1046 dentry->d_op = &v9fs_dentry_operations; 1046 d_set_d_op(dentry, &v9fs_dentry_operations);
1047 1047
1048 d_add(dentry, inode); 1048 d_add(dentry, inode);
1049 return NULL; 1049 return NULL;
@@ -1709,7 +1709,7 @@ v9fs_vfs_symlink_dotl(struct inode *dir, struct dentry *dentry,
1709 err); 1709 err);
1710 goto error; 1710 goto error;
1711 } 1711 }
1712 dentry->d_op = &v9fs_cached_dentry_operations; 1712 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
1713 d_instantiate(dentry, inode); 1713 d_instantiate(dentry, inode);
1714 err = v9fs_fid_add(dentry, fid); 1714 err = v9fs_fid_add(dentry, fid);
1715 if (err < 0) 1715 if (err < 0)
@@ -1722,7 +1722,7 @@ v9fs_vfs_symlink_dotl(struct inode *dir, struct dentry *dentry,
1722 err = PTR_ERR(inode); 1722 err = PTR_ERR(inode);
1723 goto error; 1723 goto error;
1724 } 1724 }
1725 dentry->d_op = &v9fs_dentry_operations; 1725 d_set_d_op(dentry, &v9fs_dentry_operations);
1726 d_instantiate(dentry, inode); 1726 d_instantiate(dentry, inode);
1727 } 1727 }
1728 1728
@@ -1856,7 +1856,7 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
1856 ihold(old_dentry->d_inode); 1856 ihold(old_dentry->d_inode);
1857 } 1857 }
1858 1858
1859 dentry->d_op = old_dentry->d_op; 1859 d_set_d_op(dentry, old_dentry->d_op);
1860 d_instantiate(dentry, old_dentry->d_inode); 1860 d_instantiate(dentry, old_dentry->d_inode);
1861 1861
1862 return err; 1862 return err;
@@ -1980,7 +1980,7 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
1980 err); 1980 err);
1981 goto error; 1981 goto error;
1982 } 1982 }
1983 dentry->d_op = &v9fs_cached_dentry_operations; 1983 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
1984 d_instantiate(dentry, inode); 1984 d_instantiate(dentry, inode);
1985 err = v9fs_fid_add(dentry, fid); 1985 err = v9fs_fid_add(dentry, fid);
1986 if (err < 0) 1986 if (err < 0)
@@ -1996,7 +1996,7 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
1996 err = PTR_ERR(inode); 1996 err = PTR_ERR(inode);
1997 goto error; 1997 goto error;
1998 } 1998 }
1999 dentry->d_op = &v9fs_dentry_operations; 1999 d_set_d_op(dentry, &v9fs_dentry_operations);
2000 d_instantiate(dentry, inode); 2000 d_instantiate(dentry, inode);
2001 } 2001 }
2002 /* Now set the ACL based on the default value */ 2002 /* Now set the ACL based on the default value */