diff options
Diffstat (limited to 'fs/hfsplus/bnode.c')
-rw-r--r-- | fs/hfsplus/bnode.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/fs/hfsplus/bnode.c b/fs/hfsplus/bnode.c index cf7dc8dac766..c8f4ea4bb5ed 100644 --- a/fs/hfsplus/bnode.c +++ b/fs/hfsplus/bnode.c | |||
@@ -42,7 +42,7 @@ void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) | |||
42 | u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) | 42 | u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) |
43 | { | 43 | { |
44 | __be16 data; | 44 | __be16 data; |
45 | // optimize later... | 45 | /* TODO: optimize later... */ |
46 | hfs_bnode_read(node, &data, off, 2); | 46 | hfs_bnode_read(node, &data, off, 2); |
47 | return be16_to_cpu(data); | 47 | return be16_to_cpu(data); |
48 | } | 48 | } |
@@ -50,7 +50,7 @@ u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) | |||
50 | u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) | 50 | u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) |
51 | { | 51 | { |
52 | u8 data; | 52 | u8 data; |
53 | // optimize later... | 53 | /* TODO: optimize later... */ |
54 | hfs_bnode_read(node, &data, off, 1); | 54 | hfs_bnode_read(node, &data, off, 1); |
55 | return data; | 55 | return data; |
56 | } | 56 | } |
@@ -96,7 +96,7 @@ void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) | |||
96 | void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) | 96 | void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) |
97 | { | 97 | { |
98 | __be16 v = cpu_to_be16(data); | 98 | __be16 v = cpu_to_be16(data); |
99 | // optimize later... | 99 | /* TODO: optimize later... */ |
100 | hfs_bnode_write(node, &v, off, 2); | 100 | hfs_bnode_write(node, &v, off, 2); |
101 | } | 101 | } |
102 | 102 | ||
@@ -362,7 +362,7 @@ void hfs_bnode_unlink(struct hfs_bnode *node) | |||
362 | } else if (node->type == HFS_NODE_LEAF) | 362 | } else if (node->type == HFS_NODE_LEAF) |
363 | tree->leaf_tail = node->prev; | 363 | tree->leaf_tail = node->prev; |
364 | 364 | ||
365 | // move down? | 365 | /* move down? */ |
366 | if (!node->prev && !node->next) { | 366 | if (!node->prev && !node->next) { |
367 | dprint(DBG_BNODE_MOD, "hfs_btree_del_level\n"); | 367 | dprint(DBG_BNODE_MOD, "hfs_btree_del_level\n"); |
368 | } | 368 | } |
@@ -569,11 +569,13 @@ node_error: | |||
569 | 569 | ||
570 | void hfs_bnode_free(struct hfs_bnode *node) | 570 | void hfs_bnode_free(struct hfs_bnode *node) |
571 | { | 571 | { |
572 | //int i; | 572 | #if 0 |
573 | int i; | ||
573 | 574 | ||
574 | //for (i = 0; i < node->tree->pages_per_bnode; i++) | 575 | for (i = 0; i < node->tree->pages_per_bnode; i++) |
575 | // if (node->page[i]) | 576 | if (node->page[i]) |
576 | // page_cache_release(node->page[i]); | 577 | page_cache_release(node->page[i]); |
578 | #endif | ||
577 | kfree(node); | 579 | kfree(node); |
578 | } | 580 | } |
579 | 581 | ||