Home
last modified time | relevance | path

Searched refs:p_s_path (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/fs/reiserfs/
Dstree.c882 int comp_items (const struct item_head * stored_ih, const struct path * p_s_path) in comp_items() argument
888 if ( ! B_IS_IN_TREE(p_s_bh = PATH_PLAST_BUFFER(p_s_path)) ) in comp_items()
892 if ( PATH_LAST_POSITION(p_s_path) >= B_NR_ITEMS(p_s_bh) ) in comp_items()
896 ih = get_ih (p_s_path); in comp_items()
992 struct path * p_s_path, in prepare_for_delete_or_cut() argument
1000 struct item_head * p_le_ih = PATH_PITEM_HEAD(p_s_path); in prepare_for_delete_or_cut()
1001 struct buffer_head * p_s_bh = PATH_PLAST_BUFFER(p_s_path); in prepare_for_delete_or_cut()
1016 return prepare_for_direntry_item (p_s_path, p_le_ih, inode, n_new_file_length, p_n_cut_size); in prepare_for_delete_or_cut()
1020 return prepare_for_direct_item (p_s_path, p_le_ih, inode, n_new_file_length, p_n_cut_size); in prepare_for_delete_or_cut()
1040 p_s_bh = PATH_PLAST_BUFFER(p_s_path); in prepare_for_delete_or_cut()
[all …]
Dtail_conversion.c197 struct path * p_s_path, /* path to the indirect item. */ in indirect2direct() argument
215 copy_item_head (&s_ih, PATH_PITEM_HEAD(p_s_path)); in indirect2direct()
232 if (path_changed (&s_ih, p_s_path)) { in indirect2direct()
234 if ( search_for_position_by_key (p_s_sb, p_s_item_key, p_s_path) == POSITION_NOT_FOUND ) in indirect2direct()
237 copy_item_head(&s_ih, PATH_PITEM_HEAD(p_s_path)); in indirect2direct()
258 PATH_LAST_POSITION(p_s_path)++; in indirect2direct()
264 if ( reiserfs_insert_item(th, p_s_path, &key, &s_ih, in indirect2direct()
Dfix_node.c964 struct path * p_s_path = p_s_tb->tb_path; in get_far_parent() local
969 n_path_offset = PATH_H_PATH_OFFSET(p_s_path, n_h); in get_far_parent()
982 if ( ! B_IS_IN_TREE(p_s_parent = PATH_OFFSET_PBUFFER(p_s_path, n_counter - 1)) ) in get_far_parent()
985 if ( (n_position = PATH_OFFSET_POSITION(p_s_path, n_counter - 1)) > B_NR_ITEMS(p_s_parent) ) in get_far_parent()
989 PATH_OFFSET_PBUFFER(p_s_path, n_counter)->b_blocknr ) in get_far_parent()
1070 struct path * p_s_path = p_s_tb->tb_path; in get_parents() local
1090 if ( (n_position = PATH_OFFSET_POSITION(p_s_path, n_path_offset - 1)) ) { in get_parents()
1093 p_s_curf = p_s_curcf = PATH_OFFSET_PBUFFER(p_s_path, n_path_offset - 1); in get_parents()
1120 if ( n_position == B_NR_ITEMS (PATH_H_PBUFFER(p_s_path, n_h + 1)) ) { in get_parents()
1130 p_s_curf = p_s_curcf = PATH_OFFSET_PBUFFER(p_s_path, n_path_offset - 1); in get_parents()
[all …]
/linux-2.4.37.9/include/linux/
Dreiserfs_fs.h1248 #define PATH_OFFSET_PELEMENT(p_s_path,n_offset) ((p_s_path)->path_elements +(n_offset)) argument
1251 #define PATH_OFFSET_PBUFFER(p_s_path,n_offset) (PATH_OFFSET_PELEMENT(p_s_path,n_offset)->pe_buffe… argument
1254 #define PATH_OFFSET_POSITION(p_s_path,n_offset) (PATH_OFFSET_PELEMENT(p_s_path,n_offset)->pe_positi… argument
1257 #define PATH_PLAST_BUFFER(p_s_path) (PATH_OFFSET_PBUFFER((p_s_path), (p_s_path)->path_length)) argument
1264 #define PATH_LAST_POSITION(p_s_path) (PATH_OFFSET_POSITION((p_s_path), (p_s_path)->path_length)) argument
1267 #define PATH_PITEM_HEAD(p_s_path) B_N_PITEM_HEAD(PATH_PLAST_BUFFER(p_s_path),PATH_LAST_POSITION( argument
1271 #define PATH_H_PBUFFER(p_s_path, h) PATH_OFFSET_PBUFFER (p_s_path, p_s_path->path_length - (h)) /* … argument
1276 #define PATH_H_PATH_OFFSET(p_s_path, n_h) ((p_s_path)->path_length - (n_h)) argument
1816 int comp_items (const struct item_head * stored_ih, const struct path * p_s_path);