signal: Fix sending signals with siginfo
[cris-mirror.git] / include / linux / swap_cgroup.h
blobb2b8ec7bda3f7a4b2067a355455884c10e1ac7df
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 unsigned int nr_ents);
12 extern unsigned short lookup_swap_cgroup_id(swp_entry_t ent);
13 extern int swap_cgroup_swapon(int type, unsigned long max_pages);
14 extern void swap_cgroup_swapoff(int type);
16 #else
18 static inline
19 unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id,
20 unsigned int nr_ents)
22 return 0;
25 static inline
26 unsigned short lookup_swap_cgroup_id(swp_entry_t ent)
28 return 0;
31 static inline int
32 swap_cgroup_swapon(int type, unsigned long max_pages)
34 return 0;
37 static inline void swap_cgroup_swapoff(int type)
39 return;
42 #endif /* CONFIG_MEMCG_SWAP */
44 #endif /* __LINUX_SWAP_CGROUP_H */