patch-2.2.0-pre2 linux/fs/nfsd/nfscache.c

Next file: linux/fs/nfsd/nfsctl.c
Previous file: linux/fs/nfsd/export.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/fs/nfsd/nfscache.c linux/fs/nfsd/nfscache.c
@@ -314,8 +314,8 @@
 				data->len);
 		return 0;
 	}
-	memcpy(resp->buf, data->buf, data->len);
-	resp->buf += ((data->len + 3) >> 2);
+	memcpy(resp->buf, data->buf, data->len << 2);
+	resp->buf += data->len;
 	resp->len += data->len;
 	return 1;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov