ASoC: wm_adsp: Separate concept of booted and running
[linux-2.6/btrfs-unstable.git] / include / linux / swap_cgroup.h
blob145306bdc92f59e0b97c8a59bba4cdd2009f29ea
1 #ifndef __LINUX_SWAP_CGROUP_H
2 #define __LINUX_SWAP_CGROUP_H
4 #include <linux/swap.h>
6 #ifdef CONFIG_MEMCG_SWAP
8 extern unsigned short swap_cgroup_cmpxchg(swp_entry_t ent,
9 unsigned short old, unsigned short new);
10 extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id);
11 extern unsigned short lookup_swap_cgroup_id(swp_entry_t ent);
12 extern int swap_cgroup_swapon(int type, unsigned long max_pages);
13 extern void swap_cgroup_swapoff(int type);
15 #else
17 static inline
18 unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id)
20 return 0;
23 static inline
24 unsigned short lookup_swap_cgroup_id(swp_entry_t ent)
26 return 0;
29 static inline int
30 swap_cgroup_swapon(int type, unsigned long max_pages)
32 return 0;
35 static inline void swap_cgroup_swapoff(int type)
37 return;
40 #endif /* CONFIG_MEMCG_SWAP */
42 #endif /* __LINUX_SWAP_CGROUP_H */