Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _LINUX_SWAP_H
  2. #define _LINUX_SWAP_H
  3.  
  4. #include <linux/spinlock.h>
  5.  
  6. struct notifier_block;
  7.  
  8. struct bio;
  9.  
  10. #define SWAP_FLAG_PREFER        0x8000  /* set if swap priority specified */
  11. #define SWAP_FLAG_PRIO_MASK     0x7fff
  12. #define SWAP_FLAG_PRIO_SHIFT    0
  13. #define SWAP_FLAG_DISCARD       0x10000 /* enable discard for swap */
  14. #define SWAP_FLAG_DISCARD_ONCE  0x20000 /* discard swap area at swapon-time */
  15. #define SWAP_FLAG_DISCARD_PAGES 0x40000 /* discard page-clusters after use */
  16.  
  17. #define SWAP_FLAGS_VALID        (SWAP_FLAG_PRIO_MASK | SWAP_FLAG_PREFER | \
  18.                                  SWAP_FLAG_DISCARD | SWAP_FLAG_DISCARD_ONCE | \
  19.                                  SWAP_FLAG_DISCARD_PAGES)
  20.  
  21.  
  22. #endif /* _LINUX_SWAP_H */
  23.