|
@@ -936,7 +936,7 @@ v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
|
|
|
|
|
P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry);
|
|
|
err = -EPERM;
|
|
|
- v9ses = v9fs_inode2v9ses(dentry->d_inode);
|
|
|
+ v9ses = v9fs_dentry2v9ses(dentry);
|
|
|
if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
|
|
|
generic_fillattr(dentry->d_inode, stat);
|
|
|
return 0;
|
|
@@ -977,7 +977,7 @@ static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr)
|
|
|
return retval;
|
|
|
|
|
|
retval = -EPERM;
|
|
|
- v9ses = v9fs_inode2v9ses(dentry->d_inode);
|
|
|
+ v9ses = v9fs_dentry2v9ses(dentry);
|
|
|
fid = v9fs_fid_lookup(dentry);
|
|
|
if(IS_ERR(fid))
|
|
|
return PTR_ERR(fid);
|
|
@@ -1139,7 +1139,7 @@ static int v9fs_readlink(struct dentry *dentry, char *buffer, int buflen)
|
|
|
|
|
|
P9_DPRINTK(P9_DEBUG_VFS, " %s\n", dentry->d_name.name);
|
|
|
retval = -EPERM;
|
|
|
- v9ses = v9fs_inode2v9ses(dentry->d_inode);
|
|
|
+ v9ses = v9fs_dentry2v9ses(dentry);
|
|
|
fid = v9fs_fid_lookup(dentry);
|
|
|
if (IS_ERR(fid))
|
|
|
return PTR_ERR(fid);
|