cleanup: rename key and item_head accessors to more friendly names

This patch does a quick search and replace:
B_N_PITEM_HEAD() -> item_head()
B_N_PDELIM_KEY() -> internal_key()
B_N_PKEY() -> leaf_key()
B_N_PITEM() -> item_body()

And the item_head version:
B_I_PITEM() -> ih_item_body()
I_ENTRY_COUNT() -> ih_entry_count()

And the treepath variants:
get_ih() -> tp_item_head()
PATH_PITEM_HEAD() -> tp_item_head()
get_item() -> tp_item_body()

... which makes the code much easier on the eyes.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
Jeff Mahoney committed 2013-08-26 17:15:33 -04:00
1 parent 290bb8c378
commit c1ff1d5d2d
28 files changed
+354 -355

No files matched your search

+2 -2
View File
@@ -119,7 +119,7 @@ static unsigned long move_formatted_block(reiserfs_filsys_t *fs,
leaf_node_cnt++;
for (i = 0; i < B_NR_ITEMS(bh); i++) {
ih = B_N_PITEM_HEAD(bh, i);
ih = item_head(bh, i);
/* skip the bad blocks. */
if (get_key_objectid(&ih->ih_key) == BADBLOCK_OBJID &&
@@ -129,7 +129,7 @@ static unsigned long move_formatted_block(reiserfs_filsys_t *fs,
if (is_indirect_ih(ih)) {
__u32 *indirect;
indirect = (__u32 *) B_I_PITEM(bh, ih);
indirect = (__u32 *) ih_item_body(bh, ih);
for (j = 0; j < I_UNFM_NUM(ih); j++) {
unsigned long unfm_block;