diff options
author | Eric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com> | 2007-07-13 14:01:27 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com> | 2007-07-14 16:14:08 -0400 |
commit | 9523a841b109765f8779236d28be6458ee3a6824 (patch) | |
tree | 3701f26715eae8dcfb7610984051720a6f588019 /fs/9p/vfs_inode.c | |
parent | 1d6b5602381524c339af2c2fdfe42ad0a01464a4 (diff) |
9p: cache meta-data when cache=loose
This patch expands the impact of the loose cache mode to allow for cached
metadata increasing the performance of directory listings and other metadata
read operations.
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index c602c0e054a2..e5c45eed58a9 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -716,6 +716,9 @@ v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
716 | P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry); | 716 | P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry); |
717 | err = -EPERM; | 717 | err = -EPERM; |
718 | v9ses = v9fs_inode2v9ses(dentry->d_inode); | 718 | v9ses = v9fs_inode2v9ses(dentry->d_inode); |
719 | if (v9ses->cache == CACHE_LOOSE) | ||
720 | return simple_getattr(mnt, dentry, stat); | ||
721 | |||
719 | fid = v9fs_fid_lookup(dentry); | 722 | fid = v9fs_fid_lookup(dentry); |
720 | if (IS_ERR(fid)) | 723 | if (IS_ERR(fid)) |
721 | return PTR_ERR(fid); | 724 | return PTR_ERR(fid); |