diff options
author | Karel Zak | 2012-01-11 11:43:42 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-11 11:43:42 +0100 |
commit | 9514a612463051982f3b85618285dacdd78cd220 (patch) | |
tree | 7a96b3241d016dffc4393f8895f1bce9c6d6a4f7 /mount/swapon.c | |
parent | docs: add info about virt-what to TODO (diff) | |
download | kernel-qcow2-util-linux-9514a612463051982f3b85618285dacdd78cd220.tar.gz kernel-qcow2-util-linux-9514a612463051982f3b85618285dacdd78cd220.tar.xz kernel-qcow2-util-linux-9514a612463051982f3b85618285dacdd78cd220.zip |
swapon: merge swap_constants.h into swapon.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/swapon.c')
-rw-r--r-- | mount/swapon.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mount/swapon.c b/mount/swapon.c index d70c37922..e37d8a251 100644 --- a/mount/swapon.c +++ b/mount/swapon.c @@ -17,7 +17,6 @@ #include "bitops.h" #include "blkdev.h" -#include "swap_constants.h" #include "nls.h" #include "fsprobe.h" #include "pathnames.h" @@ -37,6 +36,18 @@ # define SWAP_FLAG_DISCARD 0x10000 /* discard swap cluster after use */ #endif +#ifndef SWAP_FLAG_PREFER +# define SWAP_FLAG_PREFER 0x8000 /* set if swap priority specified */ +#endif + +#ifndef SWAP_FLAG_PRIO_MASK +# define SWAP_FLAG_PRIO_MASK 0x7fff +#endif + +#ifndef SWAP_FLAG_PRIO_SHIFT +# define SWAP_FLAG_PRIO_SHIFT 0 +#endif + #ifndef SWAPON_HAS_TWO_ARGS /* libc is insane, let's call the kernel */ # include <sys/syscall.h> |