]> err.no Git - linux-2.6/blobdiff - Documentation/block/ioprio.txt
Merge git://git.linux-nfs.org/pub/linux/nfs-2.6
[linux-2.6] / Documentation / block / ioprio.txt
index 96ccf681075e9d5a95c62b402ef11646aaf8cc02..35e516b0b8a9935b91f2c15ab56685b111f1a1d1 100644 (file)
@@ -6,10 +6,10 @@ Intro
 -----
 
 With the introduction of cfq v3 (aka cfq-ts or time sliced cfq), basic io
-priorities is supported for reads on files. This enables users to io nice
-processes or process groups, similar to what has been possible to cpu
-scheduling for ages. This document mainly details the current possibilites
-with cfq, other io schedulers do not support io priorities so far.
+priorities are supported for reads on files.  This enables users to io nice
+processes or process groups, similar to what has been possible with cpu
+scheduling for ages.  This document mainly details the current possibilities
+with cfq; other io schedulers do not support io priorities thus far.
 
 Scheduling classes
 ------------------
@@ -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,