hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/fs/reiserfs/fix_node.c
....@@ -376,7 +376,6 @@
376376 int to, int to_bytes, short *snum012, int flow)
377377 {
378378 int i;
379
- int cur_free;
380379 int units;
381380 struct virtual_node *vn = tb->tb_vn;
382381 int total_node_size, max_node_size, current_item_size;
....@@ -438,7 +437,6 @@
438437 /* leaf level */
439438 needed_nodes = 1;
440439 total_node_size = 0;
441
- cur_free = max_node_size;
442440
443441 /* start from 'from'-th item */
444442 start_item = from;
....@@ -613,9 +611,9 @@
613611 * blk_num number of blocks that S[h] will be splitted into;
614612 * s012 number of items that fall into splitted nodes.
615613 * lbytes number of bytes which flow to the left neighbor from the
616
- * item that is not not shifted entirely
614
+ * item that is not shifted entirely
617615 * rbytes number of bytes which flow to the right neighbor from the
618
- * item that is not not shifted entirely
616
+ * item that is not shifted entirely
619617 * s1bytes number of bytes which flow to the first new node when
620618 * S[0] splits (this number is contained in s012 array)
621619 */
....@@ -1734,13 +1732,11 @@
17341732 * and Fh is its father.
17351733 */
17361734 struct buffer_head *Sh, *Fh;
1737
- int maxsize, ret;
1735
+ int ret;
17381736 int lfree, rfree /* free space in L and R */ ;
17391737
17401738 Sh = PATH_H_PBUFFER(tb->tb_path, h);
17411739 Fh = PATH_H_PPARENT(tb->tb_path, h);
1742
-
1743
- maxsize = MAX_CHILD_SIZE(Sh);
17441740
17451741 /*
17461742 * using tb->insert_size[h], which is negative in this case,