Message ID | 20170801161439.13426-3-bo.li.liu@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index dafc541..5c50df7 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -4730,7 +4730,8 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, } if (!device->in_fs_metadata || - device->is_tgtdev_for_dev_replace) + device->is_tgtdev_for_dev_replace || + (device->type & BTRFS_DEV_RAID56_LOG)) continue; if (device->total_bytes > device->bytes_used)
The journal device (aka raid56 log) is not for chunk allocation, lets skip it. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> --- fs/btrfs/volumes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)