Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mbcache.h
Go to the documentation of this file.
1 /*
2  File: linux/mbcache.h
3 
4  (C) 2001 by Andreas Gruenbacher, <[email protected]>
5 */
6 
7 struct mb_cache_entry {
9  struct mb_cache *e_cache;
10  unsigned short e_used;
11  unsigned short e_queued;
15  struct {
16  struct list_head o_list;
17  unsigned int o_key;
18  } e_index;
19 };
20 
21 struct mb_cache {
23  const char *c_name;
30 };
31 
32 /* Functions on caches */
33 
34 struct mb_cache *mb_cache_create(const char *, int);
35 void mb_cache_shrink(struct block_device *);
36 void mb_cache_destroy(struct mb_cache *);
37 
38 /* Functions on cache entries */
39 
42  sector_t, unsigned int);
44 void mb_cache_entry_free(struct mb_cache_entry *);
46  struct block_device *,
47  sector_t);
49  struct block_device *,
50  unsigned int);
52  struct block_device *,
53  unsigned int);