summaryrefslogtreecommitdiff
path: root/Documentation/block
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2007-08-23 12:43:07 +0400
committerJens Axboe <axboe@carl.home.kernel.dk>2007-10-10 11:25:57 +0400
commit3317fedba9446465082bcc6ce1232451ad1d51ce (patch)
treeedcbb704be1f01b62bc6ffad5e2ab57ccd50f930 /Documentation/block
parentdb47d475371bc85dd122112e957669cbbcc70dee (diff)
downloadlinux-3317fedba9446465082bcc6ce1232451ad1d51ce.tar.xz
Corrections in Documentation/block/ioprio.txt
The newer glibc does not allow system calls to be made via _syscallN() wrapper. They have to be made through syscall(). The ionice code used the older interface. Correcting it to use syscall. Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'Documentation/block')
-rw-r--r--Documentation/block/ioprio.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/block/ioprio.txt b/Documentation/block/ioprio.txt
index 1b930ef5a079..35e516b0b8a9 100644
--- a/Documentation/block/ioprio.txt
+++ b/Documentation/block/ioprio.txt
@@ -86,8 +86,15 @@ extern int sys_ioprio_get(int, int);
#error "Unsupported arch"
#endif
-_syscall3(int, ioprio_set, int, which, int, who, int, ioprio);
-_syscall2(int, ioprio_get, int, which, int, who);
+static inline int ioprio_set(int which, int who, int ioprio)
+{
+ return syscall(__NR_ioprio_set, which, who, ioprio);
+}
+
+static inline int ioprio_get(int which, int who)
+{
+ return syscall(__NR_ioprio_get, which, who);
+}
enum {
IOPRIO_CLASS_NONE,