diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:39 -0400 |
commit | ad31a4fc0386e8590c51ca4b8f1ae1d8b8b2ac5e (patch) | |
tree | 636010f3ba98e15245f04ade1a74a730e40abf57 /include | |
parent | a9dd364358fbdc68faee5d20c2d648c320dc3cf0 (diff) |
reiserfs: rename p_s_bh to bh
This patch is a simple s/p_s_bh/bh/g to the reiserfs code. This is the
second in a series of patches to rip out some of the awful variable
naming in reiserfs.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/reiserfs_fs.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index 9bd7800d989c..9cfa518c90b6 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h | |||
@@ -751,25 +751,25 @@ struct block_head { | |||
751 | #define DISK_LEAF_NODE_LEVEL 1 /* Leaf node level. */ | 751 | #define DISK_LEAF_NODE_LEVEL 1 /* Leaf node level. */ |
752 | 752 | ||
753 | /* Given the buffer head of a formatted node, resolve to the block head of that node. */ | 753 | /* Given the buffer head of a formatted node, resolve to the block head of that node. */ |
754 | #define B_BLK_HEAD(p_s_bh) ((struct block_head *)((p_s_bh)->b_data)) | 754 | #define B_BLK_HEAD(bh) ((struct block_head *)((bh)->b_data)) |
755 | /* Number of items that are in buffer. */ | 755 | /* Number of items that are in buffer. */ |
756 | #define B_NR_ITEMS(p_s_bh) (blkh_nr_item(B_BLK_HEAD(p_s_bh))) | 756 | #define B_NR_ITEMS(bh) (blkh_nr_item(B_BLK_HEAD(bh))) |
757 | #define B_LEVEL(p_s_bh) (blkh_level(B_BLK_HEAD(p_s_bh))) | 757 | #define B_LEVEL(bh) (blkh_level(B_BLK_HEAD(bh))) |
758 | #define B_FREE_SPACE(p_s_bh) (blkh_free_space(B_BLK_HEAD(p_s_bh))) | 758 | #define B_FREE_SPACE(bh) (blkh_free_space(B_BLK_HEAD(bh))) |
759 | 759 | ||
760 | #define PUT_B_NR_ITEMS(p_s_bh,val) do { set_blkh_nr_item(B_BLK_HEAD(p_s_bh),val); } while (0) | 760 | #define PUT_B_NR_ITEMS(bh, val) do { set_blkh_nr_item(B_BLK_HEAD(bh), val); } while (0) |
761 | #define PUT_B_LEVEL(p_s_bh,val) do { set_blkh_level(B_BLK_HEAD(p_s_bh),val); } while (0) | 761 | #define PUT_B_LEVEL(bh, val) do { set_blkh_level(B_BLK_HEAD(bh), val); } while (0) |
762 | #define PUT_B_FREE_SPACE(p_s_bh,val) do { set_blkh_free_space(B_BLK_HEAD(p_s_bh),val); } while (0) | 762 | #define PUT_B_FREE_SPACE(bh, val) do { set_blkh_free_space(B_BLK_HEAD(bh), val); } while (0) |
763 | 763 | ||
764 | /* Get right delimiting key. -- little endian */ | 764 | /* Get right delimiting key. -- little endian */ |
765 | #define B_PRIGHT_DELIM_KEY(p_s_bh) (&(blk_right_delim_key(B_BLK_HEAD(p_s_bh)))) | 765 | #define B_PRIGHT_DELIM_KEY(bh) (&(blk_right_delim_key(B_BLK_HEAD(bh)))) |
766 | 766 | ||
767 | /* Does the buffer contain a disk leaf. */ | 767 | /* Does the buffer contain a disk leaf. */ |
768 | #define B_IS_ITEMS_LEVEL(p_s_bh) (B_LEVEL(p_s_bh) == DISK_LEAF_NODE_LEVEL) | 768 | #define B_IS_ITEMS_LEVEL(bh) (B_LEVEL(bh) == DISK_LEAF_NODE_LEVEL) |
769 | 769 | ||
770 | /* Does the buffer contain a disk internal node */ | 770 | /* Does the buffer contain a disk internal node */ |
771 | #define B_IS_KEYS_LEVEL(p_s_bh) (B_LEVEL(p_s_bh) > DISK_LEAF_NODE_LEVEL \ | 771 | #define B_IS_KEYS_LEVEL(bh) (B_LEVEL(bh) > DISK_LEAF_NODE_LEVEL \ |
772 | && B_LEVEL(p_s_bh) <= MAX_HEIGHT) | 772 | && B_LEVEL(bh) <= MAX_HEIGHT) |
773 | 773 | ||
774 | /***************************************************************************/ | 774 | /***************************************************************************/ |
775 | /* STAT DATA */ | 775 | /* STAT DATA */ |
@@ -1119,12 +1119,13 @@ struct disk_child { | |||
1119 | #define put_dc_size(dc_p, val) do { (dc_p)->dc_size = cpu_to_le16(val); } while(0) | 1119 | #define put_dc_size(dc_p, val) do { (dc_p)->dc_size = cpu_to_le16(val); } while(0) |
1120 | 1120 | ||
1121 | /* Get disk child by buffer header and position in the tree node. */ | 1121 | /* Get disk child by buffer header and position in the tree node. */ |
1122 | #define B_N_CHILD(p_s_bh,n_pos) ((struct disk_child *)\ | 1122 | #define B_N_CHILD(bh, n_pos) ((struct disk_child *)\ |
1123 | ((p_s_bh)->b_data+BLKH_SIZE+B_NR_ITEMS(p_s_bh)*KEY_SIZE+DC_SIZE*(n_pos))) | 1123 | ((bh)->b_data + BLKH_SIZE + B_NR_ITEMS(bh) * KEY_SIZE + DC_SIZE * (n_pos))) |
1124 | 1124 | ||
1125 | /* Get disk child number by buffer header and position in the tree node. */ | 1125 | /* Get disk child number by buffer header and position in the tree node. */ |
1126 | #define B_N_CHILD_NUM(p_s_bh,n_pos) (dc_block_number(B_N_CHILD(p_s_bh,n_pos))) | 1126 | #define B_N_CHILD_NUM(bh, n_pos) (dc_block_number(B_N_CHILD(bh, n_pos))) |
1127 | #define PUT_B_N_CHILD_NUM(p_s_bh,n_pos, val) (put_dc_block_number(B_N_CHILD(p_s_bh,n_pos), val )) | 1127 | #define PUT_B_N_CHILD_NUM(bh, n_pos, val) \ |
1128 | (put_dc_block_number(B_N_CHILD(bh, n_pos), val)) | ||
1128 | 1129 | ||
1129 | /* maximal value of field child_size in structure disk_child */ | 1130 | /* maximal value of field child_size in structure disk_child */ |
1130 | /* child size is the combined size of all items and their headers */ | 1131 | /* child size is the combined size of all items and their headers */ |
@@ -1837,7 +1838,7 @@ int search_by_key(struct super_block *, const struct cpu_key *, | |||
1837 | int search_for_position_by_key(struct super_block *sb, | 1838 | int search_for_position_by_key(struct super_block *sb, |
1838 | const struct cpu_key *p_s_cpu_key, | 1839 | const struct cpu_key *p_s_cpu_key, |
1839 | struct treepath *p_s_search_path); | 1840 | struct treepath *p_s_search_path); |
1840 | extern void decrement_bcount(struct buffer_head *p_s_bh); | 1841 | extern void decrement_bcount(struct buffer_head *bh); |
1841 | void decrement_counters_in_path(struct treepath *p_s_search_path); | 1842 | void decrement_counters_in_path(struct treepath *p_s_search_path); |
1842 | void pathrelse(struct treepath *p_s_search_path); | 1843 | void pathrelse(struct treepath *p_s_search_path); |
1843 | int reiserfs_check_path(struct treepath *p); | 1844 | int reiserfs_check_path(struct treepath *p); |
@@ -1978,7 +1979,7 @@ int reiserfs_global_version_in_proc(char *buffer, char **start, off_t offset, | |||
1978 | #define PROC_INFO_MAX( sb, field, value ) VOID_V | 1979 | #define PROC_INFO_MAX( sb, field, value ) VOID_V |
1979 | #define PROC_INFO_INC( sb, field ) VOID_V | 1980 | #define PROC_INFO_INC( sb, field ) VOID_V |
1980 | #define PROC_INFO_ADD( sb, field, val ) VOID_V | 1981 | #define PROC_INFO_ADD( sb, field, val ) VOID_V |
1981 | #define PROC_INFO_BH_STAT(sb, p_s_bh, n_node_level) VOID_V | 1982 | #define PROC_INFO_BH_STAT(sb, bh, n_node_level) VOID_V |
1982 | #endif | 1983 | #endif |
1983 | 1984 | ||
1984 | /* dir.c */ | 1985 | /* dir.c */ |