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

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