Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
jfs_incore.h File Reference
#include <linux/mutex.h>
#include <linux/rwsem.h>
#include <linux/slab.h>
#include <linux/bitops.h>
#include "jfs_types.h"
#include "jfs_xtree.h"
#include "jfs_dtree.h"

Go to the source code of this file.

Data Structures

struct  jfs_inode_info
 
struct  jfs_sb_info
 

Macros

#define JFS_SUPER_MAGIC   0x3153464a /* "JFS1" */
 
#define i_xtroot   u.file._xtroot
 
#define i_imap   u.file._imap
 
#define i_dirtable   u.dir._table
 
#define i_dtroot   u.dir._dtroot
 
#define i_inline   u.link._inline
 
#define i_inline_ea   u.link._inline_ea
 
#define IREAD_LOCK(ip, subclass)   down_read_nested(&JFS_IP(ip)->rdwrlock, subclass)
 
#define IREAD_UNLOCK(ip)   up_read(&JFS_IP(ip)->rdwrlock)
 
#define IWRITE_LOCK(ip, subclass)   down_write_nested(&JFS_IP(ip)->rdwrlock, subclass)
 
#define IWRITE_UNLOCK(ip)   up_write(&JFS_IP(ip)->rdwrlock)
 
#define set_cflag(flag, ip)   set_bit(flag, &(JFS_IP(ip)->cflag))
 
#define clear_cflag(flag, ip)   clear_bit(flag, &(JFS_IP(ip)->cflag))
 
#define test_cflag(flag, ip)   test_bit(flag, &(JFS_IP(ip)->cflag))
 
#define test_and_clear_cflag(flag, ip)   test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))
 
#define IN_LAZYCOMMIT   1
 

Enumerations

enum  cflags {
  COMMIT_Nolink, COMMIT_Inlineea, COMMIT_Freewmap, COMMIT_Dirty,
  COMMIT_Dirtable, COMMIT_Stale, COMMIT_Synclist
}
 
enum  commit_mutex_class { COMMIT_MUTEX_PARENT, COMMIT_MUTEX_CHILD, COMMIT_MUTEX_SECOND_PARENT, COMMIT_MUTEX_VICTIM }
 
enum  rdwrlock_class { RDWRLOCK_NORMAL, RDWRLOCK_IMAP, RDWRLOCK_DMAP }
 

Macro Definition Documentation

#define clear_cflag (   flag,
  ip 
)    clear_bit(flag, &(JFS_IP(ip)->cflag))

Definition at line 151 of file jfs_incore.h.

#define i_dirtable   u.dir._table

Definition at line 102 of file jfs_incore.h.

#define i_dtroot   u.dir._dtroot

Definition at line 103 of file jfs_incore.h.

#define i_imap   u.file._imap

Definition at line 101 of file jfs_incore.h.

#define i_inline   u.link._inline

Definition at line 104 of file jfs_incore.h.

#define i_inline_ea   u.link._inline_ea

Definition at line 105 of file jfs_incore.h.

#define i_xtroot   u.file._xtroot

Definition at line 100 of file jfs_incore.h.

#define IN_LAZYCOMMIT   1

Definition at line 202 of file jfs_incore.h.

#define IREAD_LOCK (   ip,
  subclass 
)    down_read_nested(&JFS_IP(ip)->rdwrlock, subclass)

Definition at line 107 of file jfs_incore.h.

#define IREAD_UNLOCK (   ip)    up_read(&JFS_IP(ip)->rdwrlock)

Definition at line 109 of file jfs_incore.h.

#define IWRITE_LOCK (   ip,
  subclass 
)    down_write_nested(&JFS_IP(ip)->rdwrlock, subclass)

Definition at line 110 of file jfs_incore.h.

#define IWRITE_UNLOCK (   ip)    up_write(&JFS_IP(ip)->rdwrlock)

Definition at line 112 of file jfs_incore.h.

#define JFS_SUPER_MAGIC   0x3153464a /* "JFS1" */

Definition at line 33 of file jfs_incore.h.

#define set_cflag (   flag,
  ip 
)    set_bit(flag, &(JFS_IP(ip)->cflag))

Definition at line 150 of file jfs_incore.h.

#define test_and_clear_cflag (   flag,
  ip 
)    test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))

Definition at line 153 of file jfs_incore.h.

#define test_cflag (   flag,
  ip 
)    test_bit(flag, &(JFS_IP(ip)->cflag))

Definition at line 152 of file jfs_incore.h.

Enumeration Type Documentation

enum cflags
Enumerator:
COMMIT_Nolink 
COMMIT_Inlineea 
COMMIT_Freewmap 
COMMIT_Dirty 
COMMIT_Dirtable 
COMMIT_Stale 
COMMIT_Synclist 

Definition at line 117 of file jfs_incore.h.

Enumerator:
COMMIT_MUTEX_PARENT 
COMMIT_MUTEX_CHILD 
COMMIT_MUTEX_SECOND_PARENT 
COMMIT_MUTEX_VICTIM 

Definition at line 130 of file jfs_incore.h.

Enumerator:
RDWRLOCK_NORMAL 
RDWRLOCK_IMAP 
RDWRLOCK_DMAP 

Definition at line 143 of file jfs_incore.h.