patch-2.4.7 linux/fs/reiserfs/fix_node.c
Next file: linux/fs/reiserfs/inode.c
Previous file: linux/fs/reiserfs/do_balan.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Wed Jul 18 07:46:02 2001
- Orig file:
v2.4.6/linux/fs/reiserfs/fix_node.c
- Orig date:
Tue Jul 3 17:08:21 2001
diff -u --recursive --new-file v2.4.6/linux/fs/reiserfs/fix_node.c linux/fs/reiserfs/fix_node.c
@@ -1030,7 +1030,7 @@
left, left);
}
#endif
- atomic_dec (&(left->b_count));
+ put_bh(left) ;
return 1;
}
@@ -1123,7 +1123,7 @@
n_first_last_position = B_NR_ITEMS (p_s_parent);
if ( n_position != n_first_last_position ) {
*pp_s_com_father = p_s_parent;
- atomic_inc (&((*pp_s_com_father)->b_count));
+ get_bh(*pp_s_com_father) ;
/*(*pp_s_com_father = p_s_parent)->b_count++;*/
break;
}
@@ -1228,8 +1228,8 @@
/* Current node is not the first child of its parent. */
/*(p_s_curf = p_s_curcf = PATH_OFFSET_PBUFFER(p_s_path, n_path_offset - 1))->b_count += 2;*/
p_s_curf = p_s_curcf = PATH_OFFSET_PBUFFER(p_s_path, n_path_offset - 1);
- atomic_inc (&(p_s_curf->b_count));
- atomic_inc (&(p_s_curf->b_count));
+ get_bh(p_s_curf) ;
+ get_bh(p_s_curf) ;
p_s_tb->lkey[n_h] = n_position - 1;
}
else {
@@ -1267,8 +1267,8 @@
/* Current node is not the last child of its parent F[n_h]. */
/*(p_s_curf = p_s_curcf = PATH_OFFSET_PBUFFER(p_s_path, n_path_offset - 1))->b_count += 2;*/
p_s_curf = p_s_curcf = PATH_OFFSET_PBUFFER(p_s_path, n_path_offset - 1);
- atomic_inc (&(p_s_curf->b_count));
- atomic_inc (&(p_s_curf->b_count));
+ get_bh(p_s_curf) ;
+ get_bh(p_s_curf) ;
p_s_tb->rkey[n_h] = n_position;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)