diff options
Diffstat (limited to 'fs/hfs/brec.c')
-rw-r--r-- | fs/hfs/brec.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/hfs/brec.c b/fs/hfs/brec.c index 92fb358ce824..57642570c6d8 100644 --- a/fs/hfs/brec.c +++ b/fs/hfs/brec.c | |||
@@ -94,7 +94,8 @@ again: | |||
94 | end_rec_off = tree->node_size - (node->num_recs + 1) * 2; | 94 | end_rec_off = tree->node_size - (node->num_recs + 1) * 2; |
95 | end_off = hfs_bnode_read_u16(node, end_rec_off); | 95 | end_off = hfs_bnode_read_u16(node, end_rec_off); |
96 | end_rec_off -= 2; | 96 | end_rec_off -= 2; |
97 | dprint(DBG_BNODE_MOD, "insert_rec: %d, %d, %d, %d\n", rec, size, end_off, end_rec_off); | 97 | hfs_dbg(BNODE_MOD, "insert_rec: %d, %d, %d, %d\n", |
98 | rec, size, end_off, end_rec_off); | ||
98 | if (size > end_rec_off - end_off) { | 99 | if (size > end_rec_off - end_off) { |
99 | if (new_node) | 100 | if (new_node) |
100 | panic("not enough room!\n"); | 101 | panic("not enough room!\n"); |
@@ -190,7 +191,8 @@ again: | |||
190 | mark_inode_dirty(tree->inode); | 191 | mark_inode_dirty(tree->inode); |
191 | } | 192 | } |
192 | hfs_bnode_dump(node); | 193 | hfs_bnode_dump(node); |
193 | dprint(DBG_BNODE_MOD, "remove_rec: %d, %d\n", fd->record, fd->keylength + fd->entrylength); | 194 | hfs_dbg(BNODE_MOD, "remove_rec: %d, %d\n", |
195 | fd->record, fd->keylength + fd->entrylength); | ||
194 | if (!--node->num_recs) { | 196 | if (!--node->num_recs) { |
195 | hfs_bnode_unlink(node); | 197 | hfs_bnode_unlink(node); |
196 | if (!node->parent) | 198 | if (!node->parent) |
@@ -240,7 +242,7 @@ static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd) | |||
240 | if (IS_ERR(new_node)) | 242 | if (IS_ERR(new_node)) |
241 | return new_node; | 243 | return new_node; |
242 | hfs_bnode_get(node); | 244 | hfs_bnode_get(node); |
243 | dprint(DBG_BNODE_MOD, "split_nodes: %d - %d - %d\n", | 245 | hfs_dbg(BNODE_MOD, "split_nodes: %d - %d - %d\n", |
244 | node->this, new_node->this, node->next); | 246 | node->this, new_node->this, node->next); |
245 | new_node->next = node->next; | 247 | new_node->next = node->next; |
246 | new_node->prev = node->this; | 248 | new_node->prev = node->this; |
@@ -374,7 +376,8 @@ again: | |||
374 | newkeylen = (hfs_bnode_read_u8(node, 14) | 1) + 1; | 376 | newkeylen = (hfs_bnode_read_u8(node, 14) | 1) + 1; |
375 | else | 377 | else |
376 | fd->keylength = newkeylen = tree->max_key_len + 1; | 378 | fd->keylength = newkeylen = tree->max_key_len + 1; |
377 | dprint(DBG_BNODE_MOD, "update_rec: %d, %d, %d\n", rec, fd->keylength, newkeylen); | 379 | hfs_dbg(BNODE_MOD, "update_rec: %d, %d, %d\n", |
380 | rec, fd->keylength, newkeylen); | ||
378 | 381 | ||
379 | rec_off = tree->node_size - (rec + 2) * 2; | 382 | rec_off = tree->node_size - (rec + 2) * 2; |
380 | end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; | 383 | end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; |