Update SWAP_FLAG_* constants
* swapon.c: Ensure that SWAP_FLAG_DISCARD_ONCE and SWAP_FLAG_DISCARD_PAGES are defined. * xlat/swap_flags.in: Add SWAP_FLAG_DISCARD_ONCE and SWAP_FLAG_DISCARD_PAGES.
This commit is contained in:
parent
719554d5eb
commit
825b524c8c
6
swapon.c
6
swapon.c
@ -8,6 +8,12 @@
|
||||
#ifndef SWAP_FLAG_DISCARD
|
||||
# define SWAP_FLAG_DISCARD 0x10000
|
||||
#endif
|
||||
#ifndef SWAP_FLAG_DISCARD_ONCE
|
||||
# define SWAP_FLAG_DISCARD_ONCE 0x20000
|
||||
#endif
|
||||
#ifndef SWAP_FLAG_DISCARD_PAGES
|
||||
# define SWAP_FLAG_DISCARD_PAGES 0x40000
|
||||
#endif
|
||||
|
||||
#include "xlat/swap_flags.h"
|
||||
|
||||
|
@ -1,2 +1,4 @@
|
||||
SWAP_FLAG_PREFER
|
||||
SWAP_FLAG_DISCARD
|
||||
SWAP_FLAG_DISCARD_ONCE
|
||||
SWAP_FLAG_DISCARD_PAGES
|
||||
|
Loading…
x
Reference in New Issue
Block a user