diff options
author | 2011-01-05 10:07:24 +0000 | |
---|---|---|
committer | 2011-01-16 11:30:19 -0500 | |
commit | 1974a3b42d8cf7a9c74f1e0310c593023617037a (patch) | |
tree | 73d7eb8dc071a095fbe424776ab7610dbc897c16 /kernel/irq/pm.c | |
parent | btrfs: try to reclaim some space when chunk allocation fails (diff) | |
download | wireguard-linux-1974a3b42d8cf7a9c74f1e0310c593023617037a.tar.xz wireguard-linux-1974a3b42d8cf7a9c74f1e0310c593023617037a.zip |
btrfs: fix wrong calculation of stripe size
There are two tiny problem:
- One is When we check the chunk size is greater than the max chunk size or not,
we should take mirrors into account, but the original code didn't.
- The other is btrfs shouldn't use the size of the residual free space as the
length of of a dup chunk when doing chunk allocation. It is because the device
space that a dup chunk needs is twice as large as the chunk size, if we use
the size of the residual free space as the length of a dup chunk, we can not
get enough free space. Fix it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'kernel/irq/pm.c')
0 files changed, 0 insertions, 0 deletions