mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
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>
This commit is contained in:
parent
df055afe9b
commit
c4e5b7470a
|
|
@ -509,8 +509,6 @@ static void __btrfs_submit_bio(struct bio *bio, struct btrfs_io_context *bioc,
|
|||
if (!bioc) {
|
||||
/* Single mirror read/write fast path. */
|
||||
btrfs_bio(bio)->mirror_num = mirror_num;
|
||||
if (bio_op(bio) != REQ_OP_READ)
|
||||
btrfs_bio(bio)->orig_physical = smap->physical;
|
||||
bio->bi_iter.bi_sector = smap->physical >> SECTOR_SHIFT;
|
||||
if (bio_op(bio) != REQ_OP_READ)
|
||||
btrfs_bio(bio)->orig_physical = smap->physical;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user