ioprio.c (5b825c3af1d8a0af4deb4a5eb349d0d0050c62e5) | ioprio.c (f719ff9bcee2a422647790f12d53d3755f47c727) |
---|---|
1/* 2 * fs/ioprio.c 3 * 4 * Copyright (C) 2004 Jens Axboe <axboe@kernel.dk> 5 * 6 * Helper functions for setting/querying io priorities of processes. The 7 * system calls closely mimmick getpriority/setpriority, see the man page for 8 * those. The prio argument is a composite of prio class and prio data, where --- 13 unchanged lines hidden (view full) --- 22#include <linux/gfp.h> 23#include <linux/kernel.h> 24#include <linux/export.h> 25#include <linux/ioprio.h> 26#include <linux/cred.h> 27#include <linux/blkdev.h> 28#include <linux/capability.h> 29#include <linux/sched/user.h> | 1/* 2 * fs/ioprio.c 3 * 4 * Copyright (C) 2004 Jens Axboe <axboe@kernel.dk> 5 * 6 * Helper functions for setting/querying io priorities of processes. The 7 * system calls closely mimmick getpriority/setpriority, see the man page for 8 * those. The prio argument is a composite of prio class and prio data, where --- 13 unchanged lines hidden (view full) --- 22#include <linux/gfp.h> 23#include <linux/kernel.h> 24#include <linux/export.h> 25#include <linux/ioprio.h> 26#include <linux/cred.h> 27#include <linux/blkdev.h> 28#include <linux/capability.h> 29#include <linux/sched/user.h> |
30#include <linux/sched/task.h> |
|
30#include <linux/syscalls.h> 31#include <linux/security.h> 32#include <linux/pid_namespace.h> 33 34int set_task_ioprio(struct task_struct *task, int ioprio) 35{ 36 int err; 37 struct io_context *ioc; --- 212 unchanged lines hidden --- | 31#include <linux/syscalls.h> 32#include <linux/security.h> 33#include <linux/pid_namespace.h> 34 35int set_task_ioprio(struct task_struct *task, int ioprio) 36{ 37 int err; 38 struct io_context *ioc; --- 212 unchanged lines hidden --- |