Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
jfs_imap.c File Reference
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/pagemap.h>
#include <linux/quotaops.h>
#include <linux/slab.h>
#include "jfs_incore.h"
#include "jfs_inode.h"
#include "jfs_filsys.h"
#include "jfs_dinode.h"
#include "jfs_dmap.h"
#include "jfs_imap.h"
#include "jfs_metapage.h"
#include "jfs_superblock.h"
#include "jfs_debug.h"

Go to the source code of this file.

Macros

#define IAGFREE_LOCK_INIT(imap)   mutex_init(&imap->im_freelock)
 
#define IAGFREE_LOCK(imap)   mutex_lock(&imap->im_freelock)
 
#define IAGFREE_UNLOCK(imap)   mutex_unlock(&imap->im_freelock)
 
#define AG_LOCK_INIT(imap, index)   mutex_init(&(imap->im_aglock[index]))
 
#define AG_LOCK(imap, agno)   mutex_lock(&imap->im_aglock[agno])
 
#define AG_UNLOCK(imap, agno)   mutex_unlock(&imap->im_aglock[agno])
 

Functions

int diMount (struct inode *ipimap)
 
int diUnmount (struct inode *ipimap, int mounterror)
 
int diSync (struct inode *ipimap)
 
int diRead (struct inode *ip)
 
struct inodediReadSpecial (struct super_block *sb, ino_t inum, int secondary)
 
void diWriteSpecial (struct inode *ip, int secondary)
 
void diFreeSpecial (struct inode *ip)
 
int diWrite (tid_t tid, struct inode *ip)
 
int diFree (struct inode *ip)
 
int diAlloc (struct inode *pip, bool dir, struct inode *ip)
 
int diUpdatePMap (struct inode *ipimap, unsigned long inum, bool is_free, struct tblock *tblk)
 
int diExtendFS (struct inode *ipimap, struct inode *ipbmap)
 

Macro Definition Documentation

#define AG_LOCK (   imap,
  agno 
)    mutex_lock(&imap->im_aglock[agno])

Definition at line 70 of file jfs_imap.c.

#define AG_LOCK_INIT (   imap,
  index 
)    mutex_init(&(imap->im_aglock[index]))

Definition at line 69 of file jfs_imap.c.

#define AG_UNLOCK (   imap,
  agno 
)    mutex_unlock(&imap->im_aglock[agno])

Definition at line 71 of file jfs_imap.c.

#define IAGFREE_LOCK (   imap)    mutex_lock(&imap->im_freelock)

Definition at line 65 of file jfs_imap.c.

#define IAGFREE_LOCK_INIT (   imap)    mutex_init(&imap->im_freelock)

Definition at line 64 of file jfs_imap.c.

#define IAGFREE_UNLOCK (   imap)    mutex_unlock(&imap->im_freelock)

Definition at line 66 of file jfs_imap.c.

Function Documentation

int diAlloc ( struct inode pip,
bool  dir,
struct inode ip 
)

Definition at line 1343 of file jfs_imap.c.

int diExtendFS ( struct inode ipimap,
struct inode ipbmap 
)

Definition at line 2868 of file jfs_imap.c.

int diFree ( struct inode ip)

Definition at line 863 of file jfs_imap.c.

void diFreeSpecial ( struct inode ip)

Definition at line 562 of file jfs_imap.c.

int diMount ( struct inode ipimap)

Definition at line 107 of file jfs_imap.c.

int diRead ( struct inode ip)

Definition at line 304 of file jfs_imap.c.

struct inode* diReadSpecial ( struct super_block sb,
ino_t  inum,
int  secondary 
)
read

Definition at line 429 of file jfs_imap.c.

int diSync ( struct inode ipimap)

Definition at line 219 of file jfs_imap.c.

int diUnmount ( struct inode ipimap,
int  mounterror 
)

Definition at line 191 of file jfs_imap.c.

int diUpdatePMap ( struct inode ipimap,
unsigned long  inum,
bool  is_free,
struct tblock tblk 
)

Definition at line 2743 of file jfs_imap.c.

int diWrite ( tid_t  tid,
struct inode ip 
)

Definition at line 599 of file jfs_imap.c.

void diWriteSpecial ( struct inode ip,
int  secondary 
)

Definition at line 517 of file jfs_imap.c.