storage.h File Reference

Data structures to store a single data block information. More...

#include <linux/list.h>
#include <linux/rwsem.h>
#include <linux/fs.h>
Include dependency graph for storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mumufs_storage
 The mumufs_storage structure is allocated for each regular file. It holds all the data block related information. More...

Functions

struct mumufs_storagemumufs_allocate_storage (void)
 Allocates and initializes a single mumufs_storage struct.
void mumufs_free_storage (struct mumufs_storage *element)
 Frees the mumufs_storage structure and the related lists.

Detailed Description

Data structures to store a single data block information.

Author:
Sergey Satskiy Copyright (C) 2007 - 2009 Sergey Satskiy.

This file is released under the GPL.

Definition in file storage.h.


Function Documentation

struct mumufs_storage* mumufs_allocate_storage ( void   )  [read]

Allocates and initializes a single mumufs_storage struct.

Returns:
Pointer to the allocated structure or NULL if failed

Definition at line 24 of file storage.c.

References mumufs_storage_cache.

void mumufs_free_storage ( struct mumufs_storage element  ) 

Frees the mumufs_storage structure and the related lists.

Parameters:
element A pointer to the structure to be deallocated

Definition at line 54 of file storage.c.

References mumufs_storage::buffer, and mumufs_storage_cache.

Referenced by mumufs_kill_super().