Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
locking.h File Reference

Go to the source code of this file.

Macros

#define BTRFS_WRITE_LOCK   1
 
#define BTRFS_READ_LOCK   2
 
#define BTRFS_WRITE_LOCK_BLOCKING   3
 
#define BTRFS_READ_LOCK_BLOCKING   4
 

Functions

void btrfs_tree_lock (struct extent_buffer *eb)
 
void btrfs_tree_unlock (struct extent_buffer *eb)
 
int btrfs_try_spin_lock (struct extent_buffer *eb)
 
void btrfs_tree_read_lock (struct extent_buffer *eb)
 
void btrfs_tree_read_unlock (struct extent_buffer *eb)
 
void btrfs_tree_read_unlock_blocking (struct extent_buffer *eb)
 
void btrfs_set_lock_blocking_rw (struct extent_buffer *eb, int rw)
 
void btrfs_clear_lock_blocking_rw (struct extent_buffer *eb, int rw)
 
void btrfs_assert_tree_locked (struct extent_buffer *eb)
 
int btrfs_try_tree_read_lock (struct extent_buffer *eb)
 
int btrfs_try_tree_write_lock (struct extent_buffer *eb)
 

Macro Definition Documentation

#define BTRFS_READ_LOCK   2

Definition at line 23 of file locking.h.

#define BTRFS_READ_LOCK_BLOCKING   4

Definition at line 25 of file locking.h.

#define BTRFS_WRITE_LOCK   1

Definition at line 22 of file locking.h.

#define BTRFS_WRITE_LOCK_BLOCKING   3

Definition at line 24 of file locking.h.

Function Documentation

void btrfs_assert_tree_locked ( struct extent_buffer eb)

Definition at line 263 of file locking.c.

void btrfs_clear_lock_blocking_rw ( struct extent_buffer eb,
int  rw 
)

Definition at line 66 of file locking.c.

void btrfs_set_lock_blocking_rw ( struct extent_buffer eb,
int  rw 
)

Definition at line 34 of file locking.c.

void btrfs_tree_lock ( struct extent_buffer eb)

Definition at line 214 of file locking.c.

void btrfs_tree_read_lock ( struct extent_buffer eb)

Definition at line 99 of file locking.c.

void btrfs_tree_read_unlock ( struct extent_buffer eb)

Definition at line 170 of file locking.c.

void btrfs_tree_read_unlock_blocking ( struct extent_buffer eb)

Definition at line 191 of file locking.c.

void btrfs_tree_unlock ( struct extent_buffer eb)

Definition at line 241 of file locking.c.

int btrfs_try_spin_lock ( struct extent_buffer eb)
int btrfs_try_tree_read_lock ( struct extent_buffer eb)

Definition at line 131 of file locking.c.

int btrfs_try_tree_write_lock ( struct extent_buffer eb)

Definition at line 150 of file locking.c.