Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229093
b: refs/heads/master
c: d96336b
h: refs/heads/master
i:
  229091: 3db77af
v: v3
  • Loading branch information
Josh Hunt authored and Jan Kara committed Jan 10, 2011
1 parent 85ac5ea commit 36f0e34
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 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: 8057b9653923bd762d89ccb730c76cba40ce96f0
refs/heads/master: d96336b05d718b03ff03c94c0dc0cc283a29d534
12 changes: 0 additions & 12 deletions trunk/fs/mbcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,6 @@ EXPORT_SYMBOL(mb_cache_entry_find_first);
EXPORT_SYMBOL(mb_cache_entry_find_next);
#endif

struct mb_cache {
struct list_head c_cache_list;
const char *c_name;
atomic_t c_entry_count;
int c_max_entries;
int c_bucket_bits;
struct kmem_cache *c_entry_cache;
struct list_head *c_block_hash;
struct list_head *c_index_hash;
};


/*
* Global data: list of all mbcache's, lru list, and a spinlock for
* accessing cache data structures on SMP machines. The lru list is
Expand Down
11 changes: 11 additions & 0 deletions trunk/include/linux/mbcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ struct mb_cache_entry {
} e_index;
};

struct mb_cache {
struct list_head c_cache_list;
const char *c_name;
atomic_t c_entry_count;
int c_max_entries;
int c_bucket_bits;
struct kmem_cache *c_entry_cache;
struct list_head *c_block_hash;
struct list_head *c_index_hash;
};

/* Functions on caches */

struct mb_cache *mb_cache_create(const char *, int);
Expand Down

0 comments on commit 36f0e34

Please sign in to comment.