]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/swap.h
mm: make swap token dummies static inlines
[karo-tx-linux.git] / include / linux / swap.h
index 7c15334f3ff2df3d3c0f4dc5d2a77c64563c2dcf..6c990e658f4ed33dc2244b1b8ef5d1649cc22a31 100644 (file)
@@ -419,10 +419,22 @@ static inline swp_entry_t get_swap_page(void)
 }
 
 /* linux/mm/thrash.c */
-#define put_swap_token(mm)     do { } while (0)
-#define grab_swap_token(mm)    do { } while (0)
-#define has_swap_token(mm)     0
-#define disable_swap_token()   do { } while (0)
+static inline void put_swap_token(struct mm_struct *mm)
+{
+}
+
+static inline void grab_swap_token(struct mm_struct *mm)
+{
+}
+
+static inline int has_swap_token(struct mm_struct *mm)
+{
+       return 0;
+}
+
+static inline void disable_swap_token(void)
+{
+}
 
 static inline void
 mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent)