OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56ae19f
)
NFS: Optimise attribute revalidation on close().
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 28 Oct 2005 02:12:41 +0000
(22:12 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 28 Oct 2005 02:12:41 +0000
(22:12 -0400)
Only force a getattr in nfs_file_flush() if the attribute
cache is stale.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/file.c
patch
|
blob
|
history
diff --git
a/fs/nfs/file.c
b/fs/nfs/file.c
index
572d859
..
57d3e77
100644
(file)
--- a/
fs/nfs/file.c
+++ b/
fs/nfs/file.c
@@
-205,8
+205,8
@@
nfs_file_flush(struct file *file)
if (!status) {
status = ctx->error;
ctx->error = 0;
- if (!status
&& !nfs_have_delegation(inode, FMODE_READ)
)
-
__
nfs_revalidate_inode(NFS_SERVER(inode), inode);
+ if (!status)
+ nfs_revalidate_inode(NFS_SERVER(inode), inode);
}
unlock_kernel();
return status;