Subversion Repositories Kolibri OS

Rev

Rev 6514 | 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. #include <linux/list.h>
  6. #include <linux/fs.h>
  7. #include <linux/atomic.h>
  8.  
  9. struct notifier_block;
  10.  
  11. struct bio;
  12.  
  13. #define SWAP_FLAG_PREFER        0x8000  /* set if swap priority specified */
  14. #define SWAP_FLAG_PRIO_MASK     0x7fff
  15. #define SWAP_FLAG_PRIO_SHIFT    0
  16. #define SWAP_FLAG_DISCARD       0x10000 /* enable discard for swap */
  17. #define SWAP_FLAG_DISCARD_ONCE  0x20000 /* discard swap area at swapon-time */
  18. #define SWAP_FLAG_DISCARD_PAGES 0x40000 /* discard page-clusters after use */
  19.  
  20. #define SWAP_FLAGS_VALID        (SWAP_FLAG_PRIO_MASK | SWAP_FLAG_PREFER | \
  21.                                  SWAP_FLAG_DISCARD | SWAP_FLAG_DISCARD_ONCE | \
  22.                                  SWAP_FLAG_DISCARD_PAGES)
  23.  
  24.  
  25. #endif /* _LINUX_SWAP_H */
  26.