From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKdmC-0003uG-87 for qemu-devel@nongnu.org; Fri, 23 Feb 2007 12:00:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKdmB-0003tv-Mn for qemu-devel@nongnu.org; Fri, 23 Feb 2007 12:00:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKdmB-0003to-9T for qemu-devel@nongnu.org; Fri, 23 Feb 2007 12:00:07 -0500 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HKdmA-0008Kf-OC for qemu-devel@nongnu.org; Fri, 23 Feb 2007 12:00:07 -0500 Date: Fri, 23 Feb 2007 17:02:06 +0000 Subject: Re: [Qemu-devel] [PATCH] syscall readahead Message-ID: <20070223170206.GD2521@networkno.de> References: <20070219131651.GE25556@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070219131651.GE25556@localhost.localdomain> From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Kirill A. Shutemov" Cc: qemu-devel@nongnu.org Kirill A. Shutemov wrote: > Patch from Debian patchset in the attachment > --- 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, > ret = get_errno(gettid()); > break; > case TARGET_NR_readahead: > - goto unimplemented; > + ret = get_errno(readahead((int)arg1, (off64_t)arg2, (size_t)arg3)); > + break; arg2 is a (off64_t *), I figure it needs locking. Thiemo