Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
inode-map.c File Reference
#include <linux/delay.h>
#include <linux/kthread.h>
#include <linux/pagemap.h>
#include "ctree.h"
#include "disk-io.h"
#include "free-space-cache.h"
#include "inode-map.h"
#include "transaction.h"

Go to the source code of this file.

Macros

#define INIT_THRESHOLD   (((1024 * 32) / 2) / sizeof(struct btrfs_free_space))
 
#define INODES_PER_BITMAP   (PAGE_CACHE_SIZE * 8)
 

Functions

int btrfs_find_free_ino (struct btrfs_root *root, u64 *objectid)
 
void btrfs_return_ino (struct btrfs_root *root, u64 objectid)
 
void btrfs_unpin_free_ino (struct btrfs_root *root)
 
void btrfs_init_free_ino_ctl (struct btrfs_root *root)
 
int btrfs_save_ino_cache (struct btrfs_root *root, struct btrfs_trans_handle *trans)
 
int btrfs_find_free_objectid (struct btrfs_root *root, u64 *objectid)
 

Macro Definition Documentation

#define INIT_THRESHOLD   (((1024 * 32) / 2) / sizeof(struct btrfs_free_space))

Definition at line 290 of file inode-map.c.

#define INODES_PER_BITMAP   (PAGE_CACHE_SIZE * 8)

Definition at line 291 of file inode-map.c.

Function Documentation

int btrfs_find_free_ino ( struct btrfs_root root,
u64 objectid 
)

Definition at line 184 of file inode-map.c.

int btrfs_find_free_objectid ( struct btrfs_root root,
u64 objectid 
)

Definition at line 554 of file inode-map.c.

void btrfs_init_free_ino_ctl ( struct btrfs_root root)

Definition at line 369 of file inode-map.c.

void btrfs_return_ino ( struct btrfs_root root,
u64  objectid 
)

Definition at line 208 of file inode-map.c.

int btrfs_save_ino_cache ( struct btrfs_root root,
struct btrfs_trans_handle trans 
)

Definition at line 395 of file inode-map.c.

void btrfs_unpin_free_ino ( struct btrfs_root root)

Definition at line 257 of file inode-map.c.