diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 445dd283dc15..304904b40610 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -891,9 +891,10 @@ v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
891 | P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry); | 891 | P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry); |
892 | err = -EPERM; | 892 | err = -EPERM; |
893 | v9ses = v9fs_inode2v9ses(dentry->d_inode); | 893 | v9ses = v9fs_inode2v9ses(dentry->d_inode); |
894 | if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) | 894 | if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { |
895 | return simple_getattr(mnt, dentry, stat); | 895 | generic_fillattr(dentry->d_inode, stat); |
896 | 896 | return 0; | |
897 | } | ||
897 | fid = v9fs_fid_lookup(dentry); | 898 | fid = v9fs_fid_lookup(dentry); |
898 | if (IS_ERR(fid)) | 899 | if (IS_ERR(fid)) |
899 | return PTR_ERR(fid); | 900 | return PTR_ERR(fid); |