Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
locking.c File Reference
#include <linux/sched.h>
#include <linux/pagemap.h>
#include <linux/spinlock.h>
#include <linux/page-flags.h>
#include <asm/bug.h>
#include "ctree.h"
#include "extent_io.h"
#include "locking.h"

Go to the source code of this file.

Functions

void btrfs_assert_tree_read_locked (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_tree_read_lock (struct extent_buffer *eb)
 
int btrfs_try_tree_read_lock (struct extent_buffer *eb)
 
int btrfs_try_tree_write_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_tree_lock (struct extent_buffer *eb)
 
void btrfs_tree_unlock (struct extent_buffer *eb)
 
void btrfs_assert_tree_locked (struct extent_buffer *eb)
 

Function Documentation

void btrfs_assert_tree_locked ( struct extent_buffer eb)

Definition at line 263 of file locking.c.

void btrfs_assert_tree_read_locked ( struct extent_buffer eb)

Definition at line 268 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_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.