From 01afab403c0b09f3a15db1a9ce88c74be8abcd60 Mon Sep 17 00:00:00 2001 From: Johannes Weiner Date: Mon, 21 Sep 2009 17:01:13 -0700 Subject: [PATCH] --- yaml --- r: 164365 b: refs/heads/master c: a5abeeacc44bbef2935a7a8e939264c28962def2 h: refs/heads/master i: 164363: c42772121caf59f206e189facd935cbe95603488 v: v3 --- [refs] | 2 +- trunk/include/linux/swap.h | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 10a299873164..64e8daf8bfd8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e +refs/heads/master: a5abeeacc44bbef2935a7a8e939264c28962def2 diff --git a/trunk/include/linux/swap.h b/trunk/include/linux/swap.h index 7c15334f3ff2..6c990e658f4e 100644 --- a/trunk/include/linux/swap.h +++ b/trunk/include/linux/swap.h @@ -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)