aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode_dotl.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-02-28 06:34:02 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 10:57:39 -0400
commita78ce05d5d342297b66122eda8add4eefa21f8a8 (patch)
tree84b9b4009ba0279ffbbc79382bbdbc6f168f23d8 /fs/9p/vfs_inode_dotl.c
parenta12119087bd803d3fa0b067ee18497e2e5d064cd (diff)
fs/9p: Add v9fs_inode
Switch to the fscache code to v9fs_inode. We will later use v9fs_inode in cache=loose mode to track the inode cache validity timeout. Ie if we find an inode in cache older that a specific jiffie range we will consider it stale Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode_dotl.c')
-rw-r--r--fs/9p/vfs_inode_dotl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index a2a3d7edb17c..21523f27f5d1 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -113,7 +113,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
113 113
114 v9fs_stat2inode_dotl(st, inode); 114 v9fs_stat2inode_dotl(st, inode);
115#ifdef CONFIG_9P_FSCACHE 115#ifdef CONFIG_9P_FSCACHE
116 v9fs_vcookie_set_qid(inode, &st->qid); 116 v9fs_fscache_set_key(inode, &st->qid);
117 v9fs_cache_inode_get_cookie(inode); 117 v9fs_cache_inode_get_cookie(inode);
118#endif 118#endif
119 retval = v9fs_get_acl(inode, fid); 119 retval = v9fs_get_acl(inode, fid);
@@ -130,8 +130,8 @@ error:
130} 130}
131 131
132struct inode * 132struct inode *
133v9fs_inode_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, 133v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid,
134 struct super_block *sb) 134 struct super_block *sb)
135{ 135{
136 struct p9_stat_dotl *st; 136 struct p9_stat_dotl *st;
137 struct inode *inode = NULL; 137 struct inode *inode = NULL;
@@ -228,7 +228,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,
228 fid = NULL; 228 fid = NULL;
229 goto error; 229 goto error;
230 } 230 }
231 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); 231 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
232 if (IS_ERR(inode)) { 232 if (IS_ERR(inode)) {
233 err = PTR_ERR(inode); 233 err = PTR_ERR(inode);
234 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", err); 234 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", err);
@@ -341,7 +341,7 @@ static int v9fs_vfs_mkdir_dotl(struct inode *dir,
341 goto error; 341 goto error;
342 } 342 }
343 343
344 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); 344 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
345 if (IS_ERR(inode)) { 345 if (IS_ERR(inode)) {
346 err = PTR_ERR(inode); 346 err = PTR_ERR(inode);
347 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", 347 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
@@ -588,7 +588,7 @@ v9fs_vfs_symlink_dotl(struct inode *dir, struct dentry *dentry,
588 } 588 }
589 589
590 /* instantiate inode and assign the unopened fid to dentry */ 590 /* instantiate inode and assign the unopened fid to dentry */
591 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); 591 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
592 if (IS_ERR(inode)) { 592 if (IS_ERR(inode)) {
593 err = PTR_ERR(inode); 593 err = PTR_ERR(inode);
594 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", 594 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
@@ -747,7 +747,7 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
747 goto error; 747 goto error;
748 } 748 }
749 749
750 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); 750 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
751 if (IS_ERR(inode)) { 751 if (IS_ERR(inode)) {
752 err = PTR_ERR(inode); 752 err = PTR_ERR(inode);
753 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", 753 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",