Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206349
b: refs/heads/master
c: cfa913a
h: refs/heads/master
i:
  206347: e928fa3
v: v3
  • Loading branch information
Ryusuke Konishi committed Jul 23, 2010
1 parent 6a4956b commit 3aa5049
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 7c01745781177795e39f78b2c2c42c470a13833a
refs/heads/master: cfa913a5077f7619869b2b4d1bf23ccb4f8b3d7b
12 changes: 12 additions & 0 deletions trunk/fs/nilfs2/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,18 @@ static void nilfs_btree_add_dirty_buffer(struct nilfs_btree *btree,
node = (struct nilfs_btree_node *)bh->b_data;
key = nilfs_btree_node_get_key(node, 0);
level = nilfs_btree_node_get_level(node);
if (level < NILFS_BTREE_LEVEL_NODE_MIN ||
level >= NILFS_BTREE_LEVEL_MAX) {
dump_stack();
printk(KERN_WARNING
"%s: invalid btree level: %d (key=%llu, ino=%lu, "
"blocknr=%llu)\n",
__func__, level, (unsigned long long)key,
NILFS_BMAP_I(&btree->bt_bmap)->vfs_inode.i_ino,
(unsigned long long)bh->b_blocknr);
return;
}

list_for_each(head, &lists[level]) {
cbh = list_entry(head, struct buffer_head, b_assoc_buffers);
cnode = (struct nilfs_btree_node *)cbh->b_data;
Expand Down

0 comments on commit 3aa5049

Please sign in to comment.