projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block: Introduce IOPRIO_NR_LEVELS
[linux-2.6-microblaze.git]
/
block
/
ioprio.c
diff --git
a/block/ioprio.c
b/block/ioprio.c
index
bee628f
..
ca6b136
100644
(file)
--- a/
block/ioprio.c
+++ b/
block/ioprio.c
@@
-74,9
+74,8
@@
int ioprio_check_cap(int ioprio)
fallthrough;
/* rt has prio field too */
case IOPRIO_CLASS_BE:
- if (data >= IOPRIO_
BE_NR
|| data < 0)
+ if (data >= IOPRIO_
NR_LEVELS
|| data < 0)
return -EINVAL;
-
break;
case IOPRIO_CLASS_IDLE:
break;