aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2005-06-22 13:16:30 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-06-22 16:07:36 -0400
commit951a143b3fcf15cfa9d38250b7462f821db241db (patch)
tree6e4ea13c5f48cc3e1ac1c8649dd0f9f20c502e20 /include/linux
parent08e9eac42edab63bce14b5c8419771f3c92aa3f4 (diff)
[PATCH] NFS: Fix the file size revalidation
Instead of looking at whether or not the file is open for writes before we accept to update the length using the server value, we should rather be looking at whether or not we are currently caching any writes. Failure to do so means in particular that we're not updating the file length correctly after obtaining a POSIX or BSD lock. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index c90313bfa435..211266c56ce5 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -294,7 +294,6 @@ extern void nfs_begin_attr_update(struct inode *);
294extern void nfs_end_attr_update(struct inode *); 294extern void nfs_end_attr_update(struct inode *);
295extern void nfs_begin_data_update(struct inode *); 295extern void nfs_begin_data_update(struct inode *);
296extern void nfs_end_data_update(struct inode *); 296extern void nfs_end_data_update(struct inode *);
297extern void nfs_end_data_update_defer(struct inode *);
298extern struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, struct rpc_cred *cred); 297extern struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, struct rpc_cred *cred);
299extern struct nfs_open_context *get_nfs_open_context(struct nfs_open_context *ctx); 298extern struct nfs_open_context *get_nfs_open_context(struct nfs_open_context *ctx);
300extern void put_nfs_open_context(struct nfs_open_context *ctx); 299extern void put_nfs_open_context(struct nfs_open_context *ctx);