aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-02-28 06:34:06 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 10:57:40 -0400
commitb3cbea03b4edbd6b625dbf813bf8c30c22213cb7 (patch)
tree8624d0c52b80b6de244bbca6f4ab35eb36d7cb62 /fs/9p/v9fs.h
parent0e432703aac3b187dd88d81ac23282f7b1c71002 (diff)
fs/9p: Add support for marking inode attribute invalid
With cached mode some of the file system operation result in updating inode attributes (ctime). Add support for marking inode attribute invalid in such cases so that we fetch the updated inode attribute on dentry revalidation. 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/v9fs.h')
-rw-r--r--fs/9p/v9fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h
index 71cab8e3a570..cfdc05527f89 100644
--- a/fs/9p/v9fs.h
+++ b/fs/9p/v9fs.h
@@ -116,12 +116,16 @@ struct v9fs_session_info {
116 struct p9_fid *root_fid; /* Used for file system sync */ 116 struct p9_fid *root_fid; /* Used for file system sync */
117}; 117};
118 118
119/* cache_validity flags */
120#define V9FS_INO_INVALID_ATTR 0x01
121
119struct v9fs_inode { 122struct v9fs_inode {
120#ifdef CONFIG_9P_FSCACHE 123#ifdef CONFIG_9P_FSCACHE
121 spinlock_t fscache_lock; 124 spinlock_t fscache_lock;
122 struct fscache_cookie *fscache; 125 struct fscache_cookie *fscache;
123 struct p9_qid *fscache_key; 126 struct p9_qid *fscache_key;
124#endif 127#endif
128 unsigned int cache_validity;
125 struct p9_fid *writeback_fid; 129 struct p9_fid *writeback_fid;
126 struct inode vfs_inode; 130 struct inode vfs_inode;
127}; 131};