diff options
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index c947803a7ba4..1b4edc6f7fd7 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -136,11 +136,6 @@ struct nfs_inode { | |||
136 | * server. | 136 | * server. |
137 | */ | 137 | */ |
138 | unsigned long cache_change_attribute; | 138 | unsigned long cache_change_attribute; |
139 | /* | ||
140 | * Counter indicating the number of outstanding requests that | ||
141 | * will cause a file data update. | ||
142 | */ | ||
143 | atomic_t data_updates; | ||
144 | 139 | ||
145 | struct rb_root access_cache; | 140 | struct rb_root access_cache; |
146 | struct list_head access_cache_entry_lru; | 141 | struct list_head access_cache_entry_lru; |
@@ -224,9 +219,13 @@ static inline struct nfs_inode *NFS_I(struct inode *inode) | |||
224 | 219 | ||
225 | #define NFS_FILEID(inode) (NFS_I(inode)->fileid) | 220 | #define NFS_FILEID(inode) (NFS_I(inode)->fileid) |
226 | 221 | ||
227 | static inline int nfs_caches_unstable(struct inode *inode) | 222 | /** |
223 | * nfs_begin_data_update | ||
224 | * @inode - pointer to inode | ||
225 | * Declare that a set of operations will update file data on the server | ||
226 | */ | ||
227 | static inline void nfs_begin_data_update(struct inode *inode) | ||
228 | { | 228 | { |
229 | return atomic_read(&NFS_I(inode)->data_updates) != 0; | ||
230 | } | 229 | } |
231 | 230 | ||
232 | static inline void nfs_mark_for_revalidate(struct inode *inode) | 231 | static inline void nfs_mark_for_revalidate(struct inode *inode) |
@@ -299,7 +298,6 @@ extern int nfs_setattr(struct dentry *, struct iattr *); | |||
299 | extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr); | 298 | extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr); |
300 | extern void nfs_begin_attr_update(struct inode *); | 299 | extern void nfs_begin_attr_update(struct inode *); |
301 | extern void nfs_end_attr_update(struct inode *); | 300 | extern void nfs_end_attr_update(struct inode *); |
302 | extern void nfs_begin_data_update(struct inode *); | ||
303 | extern void nfs_end_data_update(struct inode *); | 301 | extern void nfs_end_data_update(struct inode *); |
304 | extern struct nfs_open_context *get_nfs_open_context(struct nfs_open_context *ctx); | 302 | extern struct nfs_open_context *get_nfs_open_context(struct nfs_open_context *ctx); |
305 | extern void put_nfs_open_context(struct nfs_open_context *ctx); | 303 | extern void put_nfs_open_context(struct nfs_open_context *ctx); |