Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ibalance.c File Reference
#include <asm/uaccess.h>
#include <linux/string.h>
#include <linux/time.h>
#include "reiserfs.h"
#include <linux/buffer_head.h>

Go to the source code of this file.

Macros

#define INTERNAL_SHIFT_FROM_S_TO_L   0
 
#define INTERNAL_SHIFT_FROM_R_TO_S   1
 
#define INTERNAL_SHIFT_FROM_L_TO_S   2
 
#define INTERNAL_SHIFT_FROM_S_TO_R   3
 
#define INTERNAL_INSERT_TO_S   4
 
#define INTERNAL_INSERT_TO_L   5
 
#define INTERNAL_INSERT_TO_R   6
 

Functions

int balance_internal (struct tree_balance *, int, int, struct item_head *, struct buffer_head **)
 

Macro Definition Documentation

#define INTERNAL_INSERT_TO_L   5

Definition at line 21 of file ibalance.c.

#define INTERNAL_INSERT_TO_R   6

Definition at line 22 of file ibalance.c.

#define INTERNAL_INSERT_TO_S   4

Definition at line 20 of file ibalance.c.

#define INTERNAL_SHIFT_FROM_L_TO_S   2

Definition at line 18 of file ibalance.c.

#define INTERNAL_SHIFT_FROM_R_TO_S   1

Definition at line 17 of file ibalance.c.

#define INTERNAL_SHIFT_FROM_S_TO_L   0

Definition at line 16 of file ibalance.c.

#define INTERNAL_SHIFT_FROM_S_TO_R   3

Definition at line 19 of file ibalance.c.

Function Documentation

int balance_internal ( struct tree_balance tb,
int  h,
int  child_pos,
struct item_head insert_key,
struct buffer_head **  insert_ptr 
)

Fill new node that appears instead of S[h]

Definition at line 740 of file ibalance.c.