* [Qemu-devel] [PATCH] syscall readahead
@ 2007-02-19 13:16 Kirill A. Shutemov
2007-02-23 17:02 ` Thiemo Seufer
0 siblings, 1 reply; 2+ messages in thread
From: Kirill A. Shutemov @ 2007-02-19 13:16 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 45 bytes --]
Patch from Debian patchset in the attachment
[-- Attachment #1.2: 31_syscall_readahead.patch --]
[-- Type: text/plain, Size: 495 bytes --]
--- 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;
#ifdef TARGET_NR_setxattr
case TARGET_NR_setxattr:
case TARGET_NR_lsetxattr:
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] syscall readahead
2007-02-19 13:16 [Qemu-devel] [PATCH] syscall readahead Kirill A. Shutemov
@ 2007-02-23 17:02 ` Thiemo Seufer
0 siblings, 0 replies; 2+ messages in thread
From: Thiemo Seufer @ 2007-02-23 17:02 UTC (permalink / raw)
To: Kirill A. Shutemov; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-23 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-19 13:16 [Qemu-devel] [PATCH] syscall readahead Kirill A. Shutemov
2007-02-23 17:02 ` Thiemo Seufer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.