]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
btrfs: Consider system chunk array size for new SYSTEM chunks
authorQu Wenruo <wqu@suse.com>
Wed, 28 Aug 2019 02:33:12 +0000 (10:33 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 4 Dec 2019 09:29:26 +0000 (10:29 +0100)
commit6fb572b60da8a2d2bb6793668f7e592099848377
tree522b8a9b0f9ba2cc558e7e34e8f515f035d0041d
parent3e0dd5c86ed2d74f5930bd883806012926b95a71
btrfs: Consider system chunk array size for new SYSTEM chunks

BugLink: https://bugs.launchpad.net/bugs/1852338
commit c17add7a1c61a15578e4071ed7bfd460fd041c43 upstream.

For SYSTEM chunks, despite the regular chunk item size limit, there is
another limit due to system chunk array size.

The extra limit was removed in a refactoring, so add it back.

Fixes: e3ecdb3fdecf ("btrfs: factor out devs_max setting in __btrfs_alloc_chunk")
CC: stable@vger.kernel.org # 5.3+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/btrfs/volumes.c