mirror of
https://github.com/torvalds/linux
synced 2024-10-21 02:39:51 +00:00
fs: aio ioprio add explicit block layer dependence
Previously, the ioprio_check_cap function was only defined when CONFIG_BLOCK was set. Make this relationship explicit and add a stub for !CONFIG_BLOCK. Signed-off-by: Adam Manzanares <adam.manzanares@wdc.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
087e566916
commit
b0966e7b89
|
@ -77,6 +77,13 @@ extern int ioprio_best(unsigned short aprio, unsigned short bprio);
|
||||||
|
|
||||||
extern int set_task_ioprio(struct task_struct *task, int ioprio);
|
extern int set_task_ioprio(struct task_struct *task, int ioprio);
|
||||||
|
|
||||||
|
#ifdef CONFIG_BLOCK
|
||||||
extern int ioprio_check_cap(int ioprio);
|
extern int ioprio_check_cap(int ioprio);
|
||||||
|
#else
|
||||||
|
static inline int ioprio_check_cap(int ioprio)
|
||||||
|
{
|
||||||
|
return -ENOTBLK;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_BLOCK */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue