MFC: r264738
For an NFSv4 mount with the "nocto" option, don't get the up to date file attributes upon close. This reduces the Getattr RPC count by about 65% for software builds.
This commit is contained in:
parent
bb012fd779
commit
2200ec99a6
@ -768,7 +768,9 @@ nfs_close(struct vop_close_args *ap)
|
||||
/*
|
||||
* Get attributes so "change" is up to date.
|
||||
*/
|
||||
if (error == 0 && nfscl_mustflush(vp) != 0) {
|
||||
if (error == 0 && nfscl_mustflush(vp) != 0 &&
|
||||
vp->v_type == VREG &&
|
||||
(VFSTONFS(vp->v_mount)->nm_flag & NFSMNT_NOCTO) == 0) {
|
||||
ret = nfsrpc_getattr(vp, cred, ap->a_td, &nfsva,
|
||||
NULL);
|
||||
if (!ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user