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

btrfs: remove duplicate recording of physical address

Remove the duplicate physical recording of the original write physical
address in case of a single device write.

This duplicated code is most likely present due to a rebase error.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Johannes Thumshirn and committed by
David Sterba
c4e5b747 df055afe

-2
-2
fs/btrfs/bio.c
··· 509 509 if (!bioc) { 510 510 /* Single mirror read/write fast path. */ 511 511 btrfs_bio(bio)->mirror_num = mirror_num; 512 - if (bio_op(bio) != REQ_OP_READ) 513 - btrfs_bio(bio)->orig_physical = smap->physical; 514 512 bio->bi_iter.bi_sector = smap->physical >> SECTOR_SHIFT; 515 513 if (bio_op(bio) != REQ_OP_READ) 516 514 btrfs_bio(bio)->orig_physical = smap->physical;