Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298659
b: refs/heads/master
c: dac23b0
h: refs/heads/master
i:
  298657: 79ebcec
  298655: 840608c
v: v3
  • Loading branch information
Michal Hocko authored and Linus Torvalds committed Apr 5, 2012
1 parent 7279997 commit 43a9301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 6ede3d832aaa038e7465e677569f7acc96b4dcdf
refs/heads/master: dac23b0d0513916498d40412818bd2c581b365f7
14 changes: 7 additions & 7 deletions trunk/include/linux/swap.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ static inline int mem_cgroup_swappiness(struct mem_cgroup *mem)
return vm_swappiness;
}
#endif
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
extern void mem_cgroup_uncharge_swap(swp_entry_t ent);
#else
static inline void mem_cgroup_uncharge_swap(swp_entry_t ent)
{
}
#endif
#ifdef CONFIG_SWAP
/* linux/mm/page_io.c */
extern int swap_readpage(struct page *);
Expand Down Expand Up @@ -375,13 +382,6 @@ mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout)
{
}
#endif
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
extern void mem_cgroup_uncharge_swap(swp_entry_t ent);
#else
static inline void mem_cgroup_uncharge_swap(swp_entry_t ent)
{
}
#endif

#else /* CONFIG_SWAP */

Expand Down

0 comments on commit 43a9301

Please sign in to comment.