Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164365
b: refs/heads/master
c: a5abeea
h: refs/heads/master
i:
  164363: c427721
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Sep 22, 2009
1 parent 84dce12 commit 01afab4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e
refs/heads/master: a5abeeacc44bbef2935a7a8e939264c28962def2
20 changes: 16 additions & 4 deletions trunk/include/linux/swap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01afab4

Please sign in to comment.