Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173163
b: refs/heads/master
c: 148d350
h: refs/heads/master
i:
  173161: dcfe18f
  173159: 26e46dc
v: v3
  • Loading branch information
Frederic Weisbecker committed Sep 14, 2009
1 parent bc9ab7b commit 2d2cb28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e69e3a4492ea5abfd2e8ddc575448becf28e4d9
refs/heads/master: 148d3504c1d9f964cf14fafc46d2b7d1f0bed2b1
4 changes: 4 additions & 0 deletions trunk/fs/reiserfs/fix_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,9 @@ static int get_neighbors(struct tree_balance *tb, int h)
tb->FL[h]) ? tb->lkey[h] : B_NR_ITEMS(tb->
FL[h]);
son_number = B_N_CHILD_NUM(tb->FL[h], child_position);
reiserfs_write_unlock(sb);
bh = sb_bread(sb, son_number);
reiserfs_write_lock(sb);
if (!bh)
return IO_ERROR;
if (FILESYSTEM_CHANGED_TB(tb)) {
Expand Down Expand Up @@ -2009,7 +2011,9 @@ static int get_neighbors(struct tree_balance *tb, int h)
child_position =
(bh == tb->FR[h]) ? tb->rkey[h] + 1 : 0;
son_number = B_N_CHILD_NUM(tb->FR[h], child_position);
reiserfs_write_unlock(sb);
bh = sb_bread(sb, son_number);
reiserfs_write_lock(sb);
if (!bh)
return IO_ERROR;
if (FILESYSTEM_CHANGED_TB(tb)) {
Expand Down

0 comments on commit 2d2cb28

Please sign in to comment.