Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dlmglue.h File Reference
#include "dcache.h"

Go to the source code of this file.

Data Structures

struct  ocfs2_meta_lvb
 
struct  ocfs2_qinfo_lvb
 
struct  ocfs2_orphan_scan_lvb
 

Macros

#define OCFS2_LVB_VERSION   5
 
#define OCFS2_QINFO_LVB_VERSION   1
 
#define OCFS2_ORPHAN_LVB_VERSION   1
 
#define OCFS2_META_LOCK_RECOVERY   (0x01)
 
#define OCFS2_META_LOCK_NOQUEUE   (0x02)
 
#define OCFS2_LOCK_NONBLOCK   (0x04)
 
#define ocfs2_inode_lock_full(i, r, e, f)   ocfs2_inode_lock_full_nested(i, r, e, f, OI_LS_NORMAL)
 
#define ocfs2_inode_lock_nested(i, b, e, s)   ocfs2_inode_lock_full_nested(i, b, e, 0, s)
 
#define ocfs2_inode_lock(i, b, e)   ocfs2_inode_lock_full_nested(i, b, e, 0, OI_LS_NORMAL)
 

Enumerations

enum  {
  OI_LS_NORMAL = 0, OI_LS_PARENT, OI_LS_RENAME1, OI_LS_RENAME2,
  OI_LS_REFLINK_TARGET
}
 

Functions

int ocfs2_dlm_init (struct ocfs2_super *osb)
 
void ocfs2_dlm_shutdown (struct ocfs2_super *osb, int hangup_pending)
 
void ocfs2_lock_res_init_once (struct ocfs2_lock_res *res)
 
void ocfs2_inode_lock_res_init (struct ocfs2_lock_res *res, enum ocfs2_lock_type type, unsigned int generation, struct inode *inode)
 
void ocfs2_dentry_lock_res_init (struct ocfs2_dentry_lock *dl, u64 parent, struct inode *inode)
 
void ocfs2_file_lock_res_init (struct ocfs2_lock_res *lockres, struct ocfs2_file_private *fp)
 
void ocfs2_qinfo_lock_res_init (struct ocfs2_lock_res *lockres, struct ocfs2_mem_dqinfo *info)
 
void ocfs2_refcount_lock_res_init (struct ocfs2_lock_res *lockres, struct ocfs2_super *osb, u64 ref_blkno, unsigned int generation)
 
void ocfs2_lock_res_free (struct ocfs2_lock_res *res)
 
int ocfs2_create_new_inode_locks (struct inode *inode)
 
int ocfs2_drop_inode_locks (struct inode *inode)
 
int ocfs2_rw_lock (struct inode *inode, int write)
 
void ocfs2_rw_unlock (struct inode *inode, int write)
 
int ocfs2_open_lock (struct inode *inode)
 
int ocfs2_try_open_lock (struct inode *inode, int write)
 
void ocfs2_open_unlock (struct inode *inode)
 
int ocfs2_inode_lock_atime (struct inode *inode, struct vfsmount *vfsmnt, int *level)
 
int ocfs2_inode_lock_full_nested (struct inode *inode, struct buffer_head **ret_bh, int ex, int arg_flags, int subclass)
 
int ocfs2_inode_lock_with_page (struct inode *inode, struct buffer_head **ret_bh, int ex, struct page *page)
 
void ocfs2_inode_unlock (struct inode *inode, int ex)
 
int ocfs2_super_lock (struct ocfs2_super *osb, int ex)
 
void ocfs2_super_unlock (struct ocfs2_super *osb, int ex)
 
int ocfs2_orphan_scan_lock (struct ocfs2_super *osb, u32 *seqno)
 
void ocfs2_orphan_scan_unlock (struct ocfs2_super *osb, u32 seqno)
 
int ocfs2_rename_lock (struct ocfs2_super *osb)
 
void ocfs2_rename_unlock (struct ocfs2_super *osb)
 
int ocfs2_nfs_sync_lock (struct ocfs2_super *osb, int ex)
 
void ocfs2_nfs_sync_unlock (struct ocfs2_super *osb, int ex)
 
int ocfs2_dentry_lock (struct dentry *dentry, int ex)
 
void ocfs2_dentry_unlock (struct dentry *dentry, int ex)
 
int ocfs2_file_lock (struct file *file, int ex, int trylock)
 
void ocfs2_file_unlock (struct file *file)
 
int ocfs2_qinfo_lock (struct ocfs2_mem_dqinfo *oinfo, int ex)
 
void ocfs2_qinfo_unlock (struct ocfs2_mem_dqinfo *oinfo, int ex)
 
int ocfs2_refcount_lock (struct ocfs2_refcount_tree *ref_tree, int ex)
 
void ocfs2_refcount_unlock (struct ocfs2_refcount_tree *ref_tree, int ex)
 
void ocfs2_mark_lockres_freeing (struct ocfs2_lock_res *lockres)
 
void ocfs2_simple_drop_lockres (struct ocfs2_super *osb, struct ocfs2_lock_res *lockres)
 
void ocfs2_wake_downconvert_thread (struct ocfs2_super *osb)
 
struct ocfs2_dlm_debugocfs2_new_dlm_debug (void)
 
void ocfs2_put_dlm_debug (struct ocfs2_dlm_debug *dlm_debug)
 
void ocfs2_set_locking_protocol (void)
 

Macro Definition Documentation

#define ocfs2_inode_lock (   i,
  b,
  e 
)    ocfs2_inode_lock_full_nested(i, b, e, 0, OI_LS_NORMAL)

Definition at line 135 of file dlmglue.h.

#define ocfs2_inode_lock_full (   i,
  r,
  e,
  f 
)    ocfs2_inode_lock_full_nested(i, r, e, f, OI_LS_NORMAL)

Definition at line 129 of file dlmglue.h.

#define ocfs2_inode_lock_nested (   i,
  b,
  e,
  s 
)    ocfs2_inode_lock_full_nested(i, b, e, 0, s)

Definition at line 131 of file dlmglue.h.

#define OCFS2_LOCK_NONBLOCK   (0x04)

Definition at line 79 of file dlmglue.h.

#define OCFS2_LVB_VERSION   5

Definition at line 32 of file dlmglue.h.

#define OCFS2_META_LOCK_NOQUEUE   (0x02)

Definition at line 77 of file dlmglue.h.

#define OCFS2_META_LOCK_RECOVERY   (0x01)

Definition at line 75 of file dlmglue.h.

#define OCFS2_ORPHAN_LVB_VERSION   1

Definition at line 65 of file dlmglue.h.

#define OCFS2_QINFO_LVB_VERSION   1

Definition at line 52 of file dlmglue.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
OI_LS_NORMAL 
OI_LS_PARENT 
OI_LS_RENAME1 
OI_LS_RENAME2 
OI_LS_REFLINK_TARGET 

Definition at line 82 of file dlmglue.h.

Function Documentation

int ocfs2_create_new_inode_locks ( struct inode inode)

Definition at line 1596 of file dlmglue.c.

int ocfs2_dentry_lock ( struct dentry dentry,
int  ex 
)

Definition at line 2628 of file dlmglue.c.

void ocfs2_dentry_lock_res_init ( struct ocfs2_dentry_lock dl,
u64  parent,
struct inode inode 
)

Definition at line 602 of file dlmglue.c.

void ocfs2_dentry_unlock ( struct dentry dentry,
int  ex 
)

Definition at line 2653 of file dlmglue.c.

int ocfs2_dlm_init ( struct ocfs2_super osb)

Definition at line 2969 of file dlmglue.c.

void ocfs2_dlm_shutdown ( struct ocfs2_super osb,
int  hangup_pending 
)

Definition at line 3033 of file dlmglue.c.

int ocfs2_drop_inode_locks ( struct inode inode)

Definition at line 3192 of file dlmglue.c.

int ocfs2_file_lock ( struct file file,
int  ex,
int  trylock 
)

Definition at line 1840 of file dlmglue.c.

void ocfs2_file_lock_res_init ( struct ocfs2_lock_res lockres,
struct ocfs2_file_private fp 
)

Definition at line 685 of file dlmglue.c.

void ocfs2_file_unlock ( struct file file)

Definition at line 1936 of file dlmglue.c.

int ocfs2_inode_lock_atime ( struct inode inode,
struct vfsmount vfsmnt,
int level 
)

Definition at line 2430 of file dlmglue.c.

int ocfs2_inode_lock_full_nested ( struct inode inode,
struct buffer_head **  ret_bh,
int  ex,
int  arg_flags,
int  subclass 
)

Definition at line 2282 of file dlmglue.c.

void ocfs2_inode_lock_res_init ( struct ocfs2_lock_res res,
enum ocfs2_lock_type  type,
unsigned int  generation,
struct inode inode 
)

Definition at line 536 of file dlmglue.c.

int ocfs2_inode_lock_with_page ( struct inode inode,
struct buffer_head **  ret_bh,
int  ex,
struct page page 
)

Definition at line 2412 of file dlmglue.c.

void ocfs2_inode_unlock ( struct inode inode,
int  ex 
)

Definition at line 2466 of file dlmglue.c.

void ocfs2_lock_res_free ( struct ocfs2_lock_res res)

Definition at line 722 of file dlmglue.c.

void ocfs2_lock_res_init_once ( struct ocfs2_lock_res res)

Definition at line 526 of file dlmglue.c.

void ocfs2_mark_lockres_freeing ( struct ocfs2_lock_res lockres)

Definition at line 3148 of file dlmglue.c.

struct ocfs2_dlm_debug* ocfs2_new_dlm_debug ( void  )
read

Definition at line 2686 of file dlmglue.c.

int ocfs2_nfs_sync_lock ( struct ocfs2_super osb,
int  ex 
)

Definition at line 2600 of file dlmglue.c.

void ocfs2_nfs_sync_unlock ( struct ocfs2_super osb,
int  ex 
)

Definition at line 2619 of file dlmglue.c.

int ocfs2_open_lock ( struct inode inode)

Definition at line 1684 of file dlmglue.c.

void ocfs2_open_unlock ( struct inode inode)

Definition at line 1750 of file dlmglue.c.

int ocfs2_orphan_scan_lock ( struct ocfs2_super osb,
u32 seqno 
)

Definition at line 2482 of file dlmglue.c.

void ocfs2_orphan_scan_unlock ( struct ocfs2_super osb,
u32  seqno 
)

Definition at line 2509 of file dlmglue.c.

void ocfs2_put_dlm_debug ( struct ocfs2_dlm_debug dlm_debug)

Definition at line 2675 of file dlmglue.c.

int ocfs2_qinfo_lock ( struct ocfs2_mem_dqinfo oinfo,
int  ex 
)

Definition at line 3823 of file dlmglue.c.

void ocfs2_qinfo_lock_res_init ( struct ocfs2_lock_res lockres,
struct ocfs2_mem_dqinfo info 
)

Definition at line 700 of file dlmglue.c.

void ocfs2_qinfo_unlock ( struct ocfs2_mem_dqinfo oinfo,
int  ex 
)

Definition at line 3768 of file dlmglue.c.

int ocfs2_refcount_lock ( struct ocfs2_refcount_tree ref_tree,
int  ex 
)

Definition at line 3855 of file dlmglue.c.

void ocfs2_refcount_lock_res_init ( struct ocfs2_lock_res lockres,
struct ocfs2_super osb,
u64  ref_blkno,
unsigned int  generation 
)

Definition at line 711 of file dlmglue.c.

void ocfs2_refcount_unlock ( struct ocfs2_refcount_tree ref_tree,
int  ex 
)

Definition at line 3876 of file dlmglue.c.

int ocfs2_rename_lock ( struct ocfs2_super osb)

Definition at line 2574 of file dlmglue.c.

void ocfs2_rename_unlock ( struct ocfs2_super osb)

Definition at line 2592 of file dlmglue.c.

int ocfs2_rw_lock ( struct inode inode,
int  write 
)

Definition at line 1640 of file dlmglue.c.

void ocfs2_rw_unlock ( struct inode inode,
int  write 
)

Definition at line 1667 of file dlmglue.c.

void ocfs2_set_locking_protocol ( void  )

Definition at line 1189 of file dlmglue.c.

void ocfs2_simple_drop_lockres ( struct ocfs2_super osb,
struct ocfs2_lock_res lockres 
)

Definition at line 3173 of file dlmglue.c.

int ocfs2_super_lock ( struct ocfs2_super osb,
int  ex 
)

Definition at line 2523 of file dlmglue.c.

void ocfs2_super_unlock ( struct ocfs2_super osb,
int  ex 
)

Definition at line 2564 of file dlmglue.c.

int ocfs2_try_open_lock ( struct inode inode,
int  write 
)

Definition at line 1709 of file dlmglue.c.

void ocfs2_wake_downconvert_thread ( struct ocfs2_super osb)

Definition at line 4039 of file dlmglue.c.