提交 3317fedb 编写于 作者: D Dhaval Giani 提交者: Jens Axboe

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: NDhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 db47d475
...@@ -86,8 +86,15 @@ extern int sys_ioprio_get(int, int); ...@@ -86,8 +86,15 @@ extern int sys_ioprio_get(int, int);
#error "Unsupported arch" #error "Unsupported arch"
#endif #endif
_syscall3(int, ioprio_set, int, which, int, who, int, ioprio); static inline int ioprio_set(int which, int who, int ioprio)
_syscall2(int, ioprio_get, int, which, int, who); {
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 { enum {
IOPRIO_CLASS_NONE, IOPRIO_CLASS_NONE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册