OSDN Git Service

btrfs: reloc: rename mark_block_processed and __mark_block_processed
authorQu Wenruo <wqu@suse.com>
Thu, 20 Feb 2020 07:16:16 +0000 (15:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:16 +0000 (11:25 +0200)
commit9569cc203d23ddaed7f7f2ca986a7cda7f1c33c0
tree2c8a076f3af02d31500b1318b1c5b705f1c485d3
parent71f572a9e82fb7ed6f8c625e2682160f3a498db3
btrfs: reloc: rename mark_block_processed and __mark_block_processed

These two functions are weirdly named, mark_block_processed() in fact
just marks a range dirty unconditionally, while __mark_block_processed()
does extra check before doing the marking.

This patch will open code old mark_block_processed, and rename
__mark_block_processed() to remove the "__" prefix.

Since we're here, also kill the forward declaration, which could also
kill in_block_group() with in_range() macro.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c