commit | fce3bb9a1bd492793170e117c60d5718b7896af4 | [log] [tgz] |
---|---|---|
author | Li Dongyang <lidongyang@novell.com> | Thu Mar 24 10:24:26 2011 +0000 |
committer | root <Chris Mason chris.mason@oracle.com> | Mon Mar 28 05:37:45 2011 -0400 |
tree | 6704e735635531438bdc7dda074ad5e89d89d8eb | |
parent | b4d00d569a49fcef02195635dbf8d15904b1fb63 [diff] |
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>