From: Jens Axboe <axboe@suse.de>
To: Anton Blanchard <anton@samba.org>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] move ioprio syscalls into syscalls.h
Date: Wed, 6 Jul 2005 08:02:01 +0200 [thread overview]
Message-ID: <20050706060155.GA1444@suse.de> (raw)
In-Reply-To: <20050705205632.GF12786@krispykreme>
On Wed, Jul 06 2005, Anton Blanchard wrote:
>
> - Make ioprio syscalls return long, like set/getpriority syscalls.
> - Move function prototypes into syscalls.h so we can pick them up in the
> 32/64bit compat code.
>
> Signed-off-by: Anton Blanchard <anton@samba.org>
Thanks Anton.
Signed-off-by: Jens Axboe <axboe@suse.de>
>
> Index: foobar2/fs/ioprio.c
> ===================================================================
> --- foobar2.orig/fs/ioprio.c 2005-07-04 01:09:20.311694190 +1000
> +++ foobar2/fs/ioprio.c 2005-07-04 01:14:30.620438688 +1000
> @@ -43,7 +43,7 @@
> return 0;
> }
>
> -asmlinkage int sys_ioprio_set(int which, int who, int ioprio)
> +asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
> {
> int class = IOPRIO_PRIO_CLASS(ioprio);
> int data = IOPRIO_PRIO_DATA(ioprio);
> @@ -115,7 +115,7 @@
> return ret;
> }
>
> -asmlinkage int sys_ioprio_get(int which, int who)
> +asmlinkage long sys_ioprio_get(int which, int who)
> {
> struct task_struct *g, *p;
> struct user_struct *user;
> Index: foobar2/include/linux/syscalls.h
> ===================================================================
> --- foobar2.orig/include/linux/syscalls.h 2005-07-04 01:09:20.311694190 +1000
> +++ foobar2/include/linux/syscalls.h 2005-07-04 01:14:43.583415901 +1000
> @@ -506,4 +506,7 @@
> asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3,
> unsigned long arg4, unsigned long arg5);
>
> +asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
> +asmlinkage long sys_ioprio_get(int which, int who);
> +
> #endif
> Index: foobar2/include/linux/ioprio.h
> ===================================================================
> --- foobar2.orig/include/linux/ioprio.h 2005-07-02 15:56:13.000000000 +1000
> +++ foobar2/include/linux/ioprio.h 2005-07-04 01:16:44.216312182 +1000
> @@ -34,9 +34,6 @@
> */
> #define IOPRIO_BE_NR (8)
>
> -asmlinkage int sys_ioprio_set(int, int, int);
> -asmlinkage int sys_ioprio_get(int, int);
> -
> enum {
> IOPRIO_WHO_PROCESS = 1,
> IOPRIO_WHO_PGRP,
>
--
Jens Axboe
prev parent reply other threads:[~2005-07-06 7:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-05 20:56 [PATCH] move ioprio syscalls into syscalls.h Anton Blanchard
2005-07-05 20:58 ` [PATCH] ppc64: sys_ppc32.c cleanups Anton Blanchard
2005-07-05 21:02 ` [PATCH] ppc64: add ioprio syscalls Anton Blanchard
2005-07-05 21:04 ` [PATCH] ppc64: remove duplicate syscall reservation Anton Blanchard
2005-07-06 6:02 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050706060155.GA1444@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--cc=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.