patch-2.2.0-final linux/fs/nfsd/nfscache.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Sun Jan 24 21:54:35 1999
- Orig file:
v2.2.0-pre9/linux/fs/nfsd/nfscache.c
- Orig date:
Thu Dec 31 10:29:02 1998
diff -u --recursive --new-file v2.2.0-pre9/linux/fs/nfsd/nfscache.c linux/fs/nfsd/nfscache.c
@@ -268,8 +268,10 @@
if (!(rp = rqstp->rq_cacherep) || cache_disabled)
return;
+ len = resp->len - (statp - resp->base);
+
/* Don't cache excessive amounts of data and XDR failures */
- if (!statp || (len = resp->buf - statp) > (256 >> 2)) {
+ if (!statp || len > (256 >> 2)) {
rp->c_state = RC_UNUSED;
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov