Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115962
b: refs/heads/master
c: fdd2e5f
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Oct 20, 2008
1 parent ebbd5e3 commit 0e3fc2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 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: 1a651a00e20fd4997f0b91258f6f95b7d96edcd9
refs/heads/master: fdd2e5f88a259a537bb239e0c03c973cb6ea402a
12 changes: 0 additions & 12 deletions trunk/include/linux/rmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ struct anon_vma {

#ifdef CONFIG_MMU

extern struct kmem_cache *anon_vma_cachep;

static inline struct anon_vma *anon_vma_alloc(void)
{
return kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL);
}

static inline void anon_vma_free(struct anon_vma *anon_vma)
{
kmem_cache_free(anon_vma_cachep, anon_vma);
}

static inline void anon_vma_lock(struct vm_area_struct *vma)
{
struct anon_vma *anon_vma = vma->anon_vma;
Expand Down
12 changes: 11 additions & 1 deletion trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@

#include "internal.h"

struct kmem_cache *anon_vma_cachep;
static struct kmem_cache *anon_vma_cachep;

static inline struct anon_vma *anon_vma_alloc(void)
{
return kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL);
}

static inline void anon_vma_free(struct anon_vma *anon_vma)
{
kmem_cache_free(anon_vma_cachep, anon_vma);
}

/**
* anon_vma_prepare - attach an anon_vma to a memory region
Expand Down

0 comments on commit 0e3fc2b

Please sign in to comment.