reiserfs: balance_leaf refactor, move state variables into tree_balance
This patch pushes the rest of the state variables in balance_leaf into the tree_balance structure so we can use them when we split balance_leaf into separate functions. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -631,10 +631,11 @@ static void set_parameters(struct tree_balance *tb, int h, int lnum,
|
||||
/* only for leaf level */
|
||||
if (h == 0) {
|
||||
if (s012 != NULL) {
|
||||
tb->s0num = *s012++,
|
||||
tb->s1num = *s012++, tb->s2num = *s012++;
|
||||
tb->s1bytes = *s012++;
|
||||
tb->s2bytes = *s012;
|
||||
tb->s0num = *s012++;
|
||||
tb->snum[0] = *s012++;
|
||||
tb->snum[1] = *s012++;
|
||||
tb->sbytes[0] = *s012++;
|
||||
tb->sbytes[1] = *s012;
|
||||
}
|
||||
tb->lbytes = lb;
|
||||
tb->rbytes = rb;
|
||||
|
||||
Reference in New Issue
Block a user