Skip to content
Commit fce3bb9a authored by Li Dongyang's avatar Li Dongyang Committed by root
Browse files

Btrfs: make btrfs_map_block() return entire free extent for each device of RAID0/1/10/DUP



btrfs_map_block() will only return a single stripe length, but we want the
full extent be mapped to each disk when we are trimming the extent,
so we add length to btrfs_bio_stripe and fill it if we are mapping for REQ_DISCARD.

Signed-off-by: default avatarLi Dongyang <lidongyang@novell.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent b4d00d56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment