You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
NFS: Optimise attribute revalidation on close().
Only force a getattr in nfs_file_flush() if the attribute cache is stale. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user