aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChris Mason <[email protected]>2015-02-20 01:51:39 +0000
committerChris Mason <[email protected]>2015-02-20 14:55:15 +0000
commite57cf21e9787c081db4db6afa02e6e70112ee410 (patch)
tree7adfc0eb69debac66a20028a8a90f2a3b72f13c4 /fs/btrfs/dev-replace.c
parentBtrfs: don't remove extents and xattrs when logging new names (diff)
downloadkernel-e57cf21e9787c081db4db6afa02e6e70112ee410.tar.gz
kernel-e57cf21e9787c081db4db6afa02e6e70112ee410.zip
Btrfs: fix allocation size calculations in alloc_btrfs_bio
Since commit 8e5cfb55d3f (Btrfs: Make raid_map array be inlined in btrfs_bio structure), the raid map array is allocated along with the btrfs bio in alloc_btrfs_bio. The calculation used to decide how much we need to allocate was using the wrong parameter passed into the allocation function. The passed in real_stripes will be zero if a target replace operation is not currently running. We want to use total_stripes instead. Signed-off-by: Chris Mason <[email protected]> Reported-by: David Sterba <[email protected]> Tested-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions