inode.c File Reference

Implementation of the meat of the mumufs. It supports multiple writers and multiple readers. More...

#include <linux/module.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/smp_lock.h>
#include <linux/backing-dev.h>
#include <linux/slab.h>
#include <linux/statfs.h>
#include <asm/uaccess.h>
#include "mountdata.h"
#include "procfs.h"
#include "storage.h"
#include "file.h"
Include dependency graph for inode.c:

Go to the source code of this file.

Defines

#define MUMUFS_MAGIC   0x710110

Functions

 MODULE_LICENSE ("GPL")
 MODULE_AUTHOR ("Sergey Satskiy")
 MODULE_DESCRIPTION ("MuMu filesystem supports multiple writers and multiple readers")
int mumufs_get_sb (struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt)
 Creates mumufs superblock.
void mumufs_kill_super (struct super_block *sb)
 Kills mumufs superblock.

Variables

struct kmem_cache * mumufs_storage_cache
 Extern declaration of a global pointer to the struct mumufs_storage cache. The things are done in the inode.c file.

Detailed Description

Implementation of the meat of the mumufs. It supports multiple writers and multiple readers.

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

This file is released under the GPL.

Definition in file inode.c.


Function Documentation

int mumufs_get_sb ( struct file_system_type *  fs_type,
int  flags,
const char *  dev_name,
void *  data,
struct vfsmount *  mnt 
)

Creates mumufs superblock.

Parameters:
fs_type 
flags 
dev_name device name
data mount options
mnt mount point information
Returns:
A pointer to the superblock or NULL in case of errors

Definition at line 526 of file inode.c.

References mumu_mount_data::mount.

void mumufs_kill_super ( struct super_block *  sb  ) 

Kills mumufs superblock.

Parameters:
sb Pointer to the superblock to be killed

Definition at line 551 of file inode.c.

References mumufs_free_storage().

Here is the call graph for this function:


Variable Documentation

struct kmem_cache* mumufs_storage_cache

Extern declaration of a global pointer to the struct mumufs_storage cache. The things are done in the inode.c file.

Global pointer to a cache

Definition at line 43 of file inode.c.

Referenced by mumufs_allocate_storage(), and mumufs_free_storage().