Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mbcache.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/hash.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/mbcache.h>

Go to the source code of this file.

Macros

#define mb_debug(f...)   do { } while(0)
 
#define mb_assert(c)   do { } while(0)
 
#define mb_error(f...)
 
#define MB_CACHE_WRITER   ((unsigned short)~0U >> 1)
 

Functions

 MODULE_AUTHOR ("Andreas Gruenbacher <[email protected]>")
 
 MODULE_DESCRIPTION ("Meta block cache (for extended attributes)")
 
 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL (mb_cache_create)
 
 EXPORT_SYMBOL (mb_cache_shrink)
 
 EXPORT_SYMBOL (mb_cache_destroy)
 
 EXPORT_SYMBOL (mb_cache_entry_alloc)
 
 EXPORT_SYMBOL (mb_cache_entry_insert)
 
 EXPORT_SYMBOL (mb_cache_entry_release)
 
 EXPORT_SYMBOL (mb_cache_entry_free)
 
 EXPORT_SYMBOL (mb_cache_entry_get)
 
 EXPORT_SYMBOL (mb_cache_entry_find_first)
 
 EXPORT_SYMBOL (mb_cache_entry_find_next)
 
struct mb_cachemb_cache_create (const char *name, int bucket_bits)
 
void mb_cache_shrink (struct block_device *bdev)
 
void mb_cache_destroy (struct mb_cache *cache)
 
struct mb_cache_entrymb_cache_entry_alloc (struct mb_cache *cache, gfp_t gfp_flags)
 
int mb_cache_entry_insert (struct mb_cache_entry *ce, struct block_device *bdev, sector_t block, unsigned int key)
 
void mb_cache_entry_release (struct mb_cache_entry *ce)
 
void mb_cache_entry_free (struct mb_cache_entry *ce)
 
struct mb_cache_entrymb_cache_entry_get (struct mb_cache *cache, struct block_device *bdev, sector_t block)
 
struct mb_cache_entrymb_cache_entry_find_first (struct mb_cache *cache, struct block_device *bdev, unsigned int key)
 
struct mb_cache_entrymb_cache_entry_find_next (struct mb_cache_entry *prev, struct block_device *bdev, unsigned int key)
 

Macro Definition Documentation

#define mb_assert (   c)    do { } while(0)

Definition at line 51 of file mbcache.c.

#define MB_CACHE_WRITER   ((unsigned short)~0U >> 1)

Definition at line 58 of file mbcache.c.

#define mb_debug (   f...)    do { } while(0)

Definition at line 50 of file mbcache.c.

#define mb_error (   f...)
Value:
do { \
printk(KERN_ERR f); \
printk("\n"); \
} while(0)

Definition at line 53 of file mbcache.c.

Function Documentation

EXPORT_SYMBOL ( mb_cache_create  )
EXPORT_SYMBOL ( mb_cache_shrink  )
EXPORT_SYMBOL ( mb_cache_destroy  )
EXPORT_SYMBOL ( mb_cache_entry_alloc  )
EXPORT_SYMBOL ( mb_cache_entry_insert  )
EXPORT_SYMBOL ( mb_cache_entry_release  )
EXPORT_SYMBOL ( mb_cache_entry_free  )
EXPORT_SYMBOL ( mb_cache_entry_get  )
EXPORT_SYMBOL ( mb_cache_entry_find_first  )
EXPORT_SYMBOL ( mb_cache_entry_find_next  )
struct mb_cache* mb_cache_create ( const char name,
int  bucket_bits 
)
read

Definition at line 208 of file mbcache.c.

void mb_cache_destroy ( struct mb_cache cache)

Definition at line 298 of file mbcache.c.

struct mb_cache_entry* mb_cache_entry_alloc ( struct mb_cache cache,
gfp_t  gfp_flags 
)
read

Definition at line 342 of file mbcache.c.

struct mb_cache_entry* mb_cache_entry_find_first ( struct mb_cache cache,
struct block_device bdev,
unsigned int  key 
)
read

Definition at line 556 of file mbcache.c.

struct mb_cache_entry* mb_cache_entry_find_next ( struct mb_cache_entry prev,
struct block_device bdev,
unsigned int  key 
)
read

Definition at line 590 of file mbcache.c.

void mb_cache_entry_free ( struct mb_cache_entry ce)

Definition at line 439 of file mbcache.c.

struct mb_cache_entry* mb_cache_entry_get ( struct mb_cache cache,
struct block_device bdev,
sector_t  block 
)
read

Definition at line 457 of file mbcache.c.

int mb_cache_entry_insert ( struct mb_cache_entry ce,
struct block_device bdev,
sector_t  block,
unsigned int  key 
)

Definition at line 386 of file mbcache.c.

void mb_cache_entry_release ( struct mb_cache_entry ce)

Definition at line 425 of file mbcache.c.

void mb_cache_shrink ( struct block_device bdev)

Definition at line 268 of file mbcache.c.

MODULE_AUTHOR ( "Andreas Gruenbacher <[email protected]>"  )
MODULE_DESCRIPTION ( "Meta block cache (for extended attributes)"  )
MODULE_LICENSE ( "GPL"  )