aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-09-25 19:47:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-09-25 20:51:40 -0400
commit4fadcd1c14d810ec6a695039cfc71e03ae742deb (patch)
treecd356b482c3dcfe806caf1fc7065fbff208aa83b /fs
parent73fbff5eea3c0684519c0d8b60177557b5ac8f9b (diff)
fs/reiserfs/fix_node.c: remove set but not used variables
fs/reiserfs/fix_node.c: In function get_num_ver: fs/reiserfs/fix_node.c:379:6: warning: variable cur_free set but not used [-Wunused-but-set-variable] fs/reiserfs/fix_node.c: In function dc_check_balance_internal: fs/reiserfs/fix_node.c:1737:6: warning: variable maxsize set but not used [-Wunused-but-set-variable] Link: http://lkml.kernel.org/r/1566379929-118398-7-git-send-email-zhengbin13@huawei.com Signed-off-by: zhengbin <zhengbin13@huawei.com> Reported-by: Hulk Robot <hulkci@huawei.com> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/reiserfs/fix_node.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/reiserfs/fix_node.c b/fs/reiserfs/fix_node.c
index 6b0ddb2a9091..117092224111 100644
--- a/fs/reiserfs/fix_node.c
+++ b/fs/reiserfs/fix_node.c
@@ -376,7 +376,6 @@ static int get_num_ver(int mode, struct tree_balance *tb, int h,
376 int to, int to_bytes, short *snum012, int flow) 376 int to, int to_bytes, short *snum012, int flow)
377{ 377{
378 int i; 378 int i;
379 int cur_free;
380 int units; 379 int units;
381 struct virtual_node *vn = tb->tb_vn; 380 struct virtual_node *vn = tb->tb_vn;
382 int total_node_size, max_node_size, current_item_size; 381 int total_node_size, max_node_size, current_item_size;
@@ -438,7 +437,6 @@ static int get_num_ver(int mode, struct tree_balance *tb, int h,
438 /* leaf level */ 437 /* leaf level */
439 needed_nodes = 1; 438 needed_nodes = 1;
440 total_node_size = 0; 439 total_node_size = 0;
441 cur_free = max_node_size;
442 440
443 /* start from 'from'-th item */ 441 /* start from 'from'-th item */
444 start_item = from; 442 start_item = from;
@@ -1734,14 +1732,12 @@ static int dc_check_balance_internal(struct tree_balance *tb, int h)
1734 * and Fh is its father. 1732 * and Fh is its father.
1735 */ 1733 */
1736 struct buffer_head *Sh, *Fh; 1734 struct buffer_head *Sh, *Fh;
1737 int maxsize, ret; 1735 int ret;
1738 int lfree, rfree /* free space in L and R */ ; 1736 int lfree, rfree /* free space in L and R */ ;
1739 1737
1740 Sh = PATH_H_PBUFFER(tb->tb_path, h); 1738 Sh = PATH_H_PBUFFER(tb->tb_path, h);
1741 Fh = PATH_H_PPARENT(tb->tb_path, h); 1739 Fh = PATH_H_PPARENT(tb->tb_path, h);
1742 1740
1743 maxsize = MAX_CHILD_SIZE(Sh);
1744
1745 /* 1741 /*
1746 * using tb->insert_size[h], which is negative in this case, 1742 * using tb->insert_size[h], which is negative in this case,
1747 * create_virtual_node calculates: 1743 * create_virtual_node calculates: