From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJ9K0-00077w-Sy for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:16:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJ9Jz-000760-Hc for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:16:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJ9Jz-00075s-Bo for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:16:51 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJ9Jy-0006iW-Vc for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:16:51 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id ABBD9D632A6 for ; Mon, 19 Feb 2007 16:18:53 +0200 (EET) Received: from partizan.velesys.com ([10.0.0.24]) by localhost (partizan.velesys.com [10.0.0.24]) (amavisd-new, port 10024) with ESMTP id ciorPQvP81n8 for ; Mon, 19 Feb 2007 16:18:50 +0200 (EET) Received: from localhost.localdomain (mm-110-150-57-86.adsl.mgts.by [86.57.150.110]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 6121BD63262 for ; Mon, 19 Feb 2007 16:18:50 +0200 (EET) Date: Mon, 19 Feb 2007 16:16:51 +0300 From: "Kirill A. Shutemov" Message-ID: <20070219131651.GE25556@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="doKZ0ri6bHmN2Q5y" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] syscall readahead Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --doKZ0ri6bHmN2Q5y Content-Type: multipart/mixed; boundary="9ADF8FXzFeE7X4jE" Content-Disposition: inline --9ADF8FXzFeE7X4jE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Patch from Debian patchset in the attachment --9ADF8FXzFeE7X4jE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="31_syscall_readahead.patch" Content-Transfer-Encoding: quoted-printable --- linux-user/syscall.c.orig 2006-11-05 07:07:19.000000000 +0200 +++ linux-user/syscall.c 2006-11-05 07:07:25.000000000 +0200 @@ -3947,7 +3956,8 @@ long do_syscall(void *cpu_env, int num,=20 ret =3D get_errno(gettid()); break; case TARGET_NR_readahead: - goto unimplemented; + ret =3D get_errno(readahead((int)arg1, (off64_t)arg2, (size_t)arg3= )); + break; #ifdef TARGET_NR_setxattr case TARGET_NR_setxattr: case TARGET_NR_lsetxattr: --9ADF8FXzFeE7X4jE-- --doKZ0ri6bHmN2Q5y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF2aNDbWYnhzC5v6oRArl0AJwP04Vs64dcE5NwubMEfjWb3RvcGwCdGXnz juc4opYwhBJrS0hJ6UlBtss= =mVxe -----END PGP SIGNATURE----- --doKZ0ri6bHmN2Q5y--