Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47906
b: refs/heads/master
c: 79a81ae
h: refs/heads/master
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Linus Torvalds committed Feb 12, 2007
1 parent 9d6b858 commit bd46081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b5925fd5461c9f1ac77ede48945ca1945202ddb
refs/heads/master: 79a81aef769f3a188988ad16032ccfc445cfaa13
5 changes: 3 additions & 2 deletions trunk/fs/reiserfs/do_balan.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/time.h>
#include <linux/reiserfs_fs.h>
#include <linux/buffer_head.h>
#include <linux/kernel.h>

#ifdef CONFIG_REISERFS_CHECK

Expand Down Expand Up @@ -1756,7 +1757,7 @@ static void store_thrown(struct tree_balance *tb, struct buffer_head *bh)
if (buffer_dirty(bh))
reiserfs_warning(tb->tb_sb,
"store_thrown deals with dirty buffer");
for (i = 0; i < sizeof(tb->thrown) / sizeof(tb->thrown[0]); i++)
for (i = 0; i < ARRAY_SIZE(tb->thrown); i++)
if (!tb->thrown[i]) {
tb->thrown[i] = bh;
get_bh(bh); /* free_thrown puts this */
Expand All @@ -1769,7 +1770,7 @@ static void free_thrown(struct tree_balance *tb)
{
int i;
b_blocknr_t blocknr;
for (i = 0; i < sizeof(tb->thrown) / sizeof(tb->thrown[0]); i++) {
for (i = 0; i < ARRAY_SIZE(tb->thrown); i++) {
if (tb->thrown[i]) {
blocknr = tb->thrown[i]->b_blocknr;
if (buffer_dirty(tb->thrown[i]))
Expand Down

0 comments on commit bd46081

Please sign in to comment.