]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make btrfs_map_block() return entire free extent for each device of RAID0...
authorLi Dongyang <lidongyang@novell.com>
Thu, 24 Mar 2011 10:24:26 +0000 (10:24 +0000)
committerroot <Chris Mason chris.mason@oracle.com>
Mon, 28 Mar 2011 09:37:45 +0000 (05:37 -0400)
commit70eb047742afe2f4b4810bbfd43418dfad7f97da
tree6704e735635531438bdc7dda074ad5e89d89d8eb
parent67963cc557f0aac9e96d5ba1e7c05cf3f5e07baa
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: Li Dongyang <lidongyang@novell.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h