summaryrefslogtreecommitdiff
path: root/src/basic/ioprio.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-21 00:36:35 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-21 00:46:22 +0100
commitcb6870f67af5847e2276a31154d2ee6ced05070d (patch)
treec139f30c867191b2fe25c997f91da0dfb3a6f2b4 /src/basic/ioprio.h
parente3c3d6761b3e7d7b628a5bcbbabeb9e6e06bb6a3 (diff)
downloadsystemd-cb6870f67af5847e2276a31154d2ee6ced05070d.tar.gz
Restore naming of IOPRIO_PRIO defines from linux/ioprio.h
This undoes part of 10062bbc35a28e95897f66fa5f4991b9b1f9df5d.
Diffstat (limited to 'src/basic/ioprio.h')
-rw-r--r--src/basic/ioprio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/ioprio.h b/src/basic/ioprio.h
index 8fe74f03f8..3fb168dafe 100644
--- a/src/basic/ioprio.h
+++ b/src/basic/ioprio.h
@@ -13,10 +13,10 @@
#define IOPRIO_BITS 16
#define IOPRIO_N_CLASSES 8
#define IOPRIO_CLASS_SHIFT 13
-#define IOPRIO_PRIO_DATA_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
+#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
#define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)
-#define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_DATA_MASK)
+#define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK)
#define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)
#define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)