summaryrefslogtreecommitdiff
path: root/fs/befs/befs.h
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2012-03-27 14:09:17 (GMT)
committerIlya Dryomov <idryomov@gmail.com>2012-03-27 14:09:17 (GMT)
commit4a5e98f5d61f698452e564e0cde34c16a6b65752 (patch)
treed65c346e8763380a1afac2984abc12533ecf15b7 /fs/befs/befs.h
parent7738a53a3a3aa8d82350280ff4bc7df9c3094123 (diff)
downloadlinux-fsl-qoriq-4a5e98f5d61f698452e564e0cde34c16a6b65752.tar.xz
Btrfs: improve the logic in btrfs_can_relocate()
Currently if we don't have enough space allocated we go ahead and loop though devices in the hopes of finding enough space for a chunk of the *same* type as the one we are trying to relocate. The problem with that is that if we are trying to restripe the chunk its target type can be more relaxed than the current one (eg require less devices or less space). So, when restriping, run checks against the target profile instead of the current one. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/befs/befs.h')
0 files changed, 0 insertions, 0 deletions