Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cache.c File Reference
#include <linux/fs.h>
#include <linux/vfs.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/pagemap.h>
#include "squashfs_fs.h"
#include "squashfs_fs_sb.h"
#include "squashfs.h"

Go to the source code of this file.

Functions

struct squashfs_cache_entrysquashfs_cache_get (struct super_block *sb, struct squashfs_cache *cache, u64 block, int length)
 
void squashfs_cache_put (struct squashfs_cache_entry *entry)
 
void squashfs_cache_delete (struct squashfs_cache *cache)
 
struct squashfs_cachesquashfs_cache_init (char *name, int entries, int block_size)
 
int squashfs_copy_data (void *buffer, struct squashfs_cache_entry *entry, int offset, int length)
 
int squashfs_read_metadata (struct super_block *sb, void *buffer, u64 *block, int *offset, int length)
 
struct squashfs_cache_entrysquashfs_get_fragment (struct super_block *sb, u64 start_block, int length)
 
struct squashfs_cache_entrysquashfs_get_datablock (struct super_block *sb, u64 start_block, int length)
 
voidsquashfs_read_table (struct super_block *sb, u64 block, int length)
 

Function Documentation

void squashfs_cache_delete ( struct squashfs_cache cache)

Definition at line 210 of file cache.c.

struct squashfs_cache_entry* squashfs_cache_get ( struct super_block sb,
struct squashfs_cache cache,
u64  block,
int  length 
)
read

Definition at line 64 of file cache.c.

struct squashfs_cache* squashfs_cache_init ( char name,
int  entries,
int  block_size 
)
read

Definition at line 235 of file cache.c.

void squashfs_cache_put ( struct squashfs_cache_entry entry)

Definition at line 186 of file cache.c.

int squashfs_copy_data ( void buffer,
struct squashfs_cache_entry entry,
int  offset,
int  length 
)

Definition at line 298 of file cache.c.

struct squashfs_cache_entry* squashfs_get_datablock ( struct super_block sb,
u64  start_block,
int  length 
)
read

Definition at line 396 of file cache.c.

struct squashfs_cache_entry* squashfs_get_fragment ( struct super_block sb,
u64  start_block,
int  length 
)
read

Definition at line 381 of file cache.c.

int squashfs_read_metadata ( struct super_block sb,
void buffer,
u64 block,
int offset,
int  length 
)

Definition at line 336 of file cache.c.

void* squashfs_read_table ( struct super_block sb,
u64  block,
int  length 
)

Definition at line 408 of file cache.c.