diff options
Diffstat (limited to 'fs/9p/vfs_inode_dotl.c')
-rw-r--r-- | fs/9p/vfs_inode_dotl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 4c10edec26a0..589ef6afc160 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -473,13 +473,11 @@ static int | |||
473 | v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry, | 473 | v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry, |
474 | struct kstat *stat) | 474 | struct kstat *stat) |
475 | { | 475 | { |
476 | int err; | ||
477 | struct v9fs_session_info *v9ses; | 476 | struct v9fs_session_info *v9ses; |
478 | struct p9_fid *fid; | 477 | struct p9_fid *fid; |
479 | struct p9_stat_dotl *st; | 478 | struct p9_stat_dotl *st; |
480 | 479 | ||
481 | p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry); | 480 | p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry); |
482 | err = -EPERM; | ||
483 | v9ses = v9fs_dentry2v9ses(dentry); | 481 | v9ses = v9fs_dentry2v9ses(dentry); |
484 | if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { | 482 | if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { |
485 | generic_fillattr(dentry->d_inode, stat); | 483 | generic_fillattr(dentry->d_inode, stat); |