Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2239
b: refs/heads/master
c: 1944972
h: refs/heads/master
i:
  2237: 5bc17d7
  2235: c245d08
  2231: 806d04a
  2223: ffabe89
  2207: c0ee931
  2175: f3eb7b1
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Jun 19, 2005
1 parent 8ee3771 commit f50ae82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee57eef99b9e19194677f552ebc0690ec35d62db
refs/heads/master: 1944972d3bb651474a5021c9da8d0166ae19f1eb
1 change: 1 addition & 0 deletions trunk/include/linux/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ extern int kmem_cache_shrink(kmem_cache_t *);
extern void *kmem_cache_alloc(kmem_cache_t *, unsigned int __nocast);
extern void kmem_cache_free(kmem_cache_t *, void *);
extern unsigned int kmem_cache_size(kmem_cache_t *);
extern const char *kmem_cache_name(kmem_cache_t *);
extern kmem_cache_t *kmem_find_general_cachep(size_t size, int gfpflags);

/* Size description struct for general caches. */
Expand Down
6 changes: 6 additions & 0 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,12 @@ unsigned int kmem_cache_size(kmem_cache_t *cachep)
}
EXPORT_SYMBOL(kmem_cache_size);

const char *kmem_cache_name(kmem_cache_t *cachep)
{
return cachep->name;
}
EXPORT_SYMBOL_GPL(kmem_cache_name);

struct ccupdate_struct {
kmem_cache_t *cachep;
struct array_cache *new[NR_CPUS];
Expand Down

0 comments on commit f50ae82

Please sign in to comment.