storage.c File Reference

Implementation of the storage structure related operations. More...

#include <linux/module.h>
#include <linux/slab.h>
#include "storage.h"
#include "cache.h"
Include dependency graph for storage.c:

Go to the source code of this file.

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

Implementation of the storage structure related operations.

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

This file is released under the GPL.

Definition in file storage.c.


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().