Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: Remove noused chunk_tree and chunk_objectid from scrub_enumerate_chunks and scrub_chunk

These variables are not used from introduced version, remove them.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>

authored by

Zhao Lei and committed by
Chris Mason
8c204c96 7955323b

+2 -8
+2 -8
fs/btrfs/scrub.c
··· 3493 3493 3494 3494 static noinline_for_stack int scrub_chunk(struct scrub_ctx *sctx, 3495 3495 struct btrfs_device *scrub_dev, 3496 - u64 chunk_tree, u64 chunk_objectid, 3497 3496 u64 chunk_offset, u64 length, 3498 3497 u64 dev_offset, int is_dev_replace) 3499 3498 { ··· 3543 3544 struct btrfs_root *root = sctx->dev_root; 3544 3545 struct btrfs_fs_info *fs_info = root->fs_info; 3545 3546 u64 length; 3546 - u64 chunk_tree; 3547 - u64 chunk_objectid; 3548 3547 u64 chunk_offset; 3549 3548 int ret = 0; 3550 3549 int slot; ··· 3606 3609 if (found_key.offset + length <= start) 3607 3610 goto skip; 3608 3611 3609 - chunk_tree = btrfs_dev_extent_chunk_tree(l, dev_extent); 3610 - chunk_objectid = btrfs_dev_extent_chunk_objectid(l, dev_extent); 3611 3612 chunk_offset = btrfs_dev_extent_chunk_offset(l, dev_extent); 3612 3613 3613 3614 /* ··· 3638 3643 dev_replace->cursor_right = found_key.offset + length; 3639 3644 dev_replace->cursor_left = found_key.offset; 3640 3645 dev_replace->item_needs_writeback = 1; 3641 - ret = scrub_chunk(sctx, scrub_dev, chunk_tree, chunk_objectid, 3642 - chunk_offset, length, found_key.offset, 3643 - is_dev_replace); 3646 + ret = scrub_chunk(sctx, scrub_dev, chunk_offset, length, 3647 + found_key.offset, is_dev_replace); 3644 3648 3645 3649 /* 3646 3650 * flush, submit all pending read and write bios, afterwards