ash: memalloc: Avoid looping in growstackto
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Feb 2020 14:25:37 +0000 (15:25 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Feb 2020 14:25:37 +0000 (15:25 +0100)
commitda2e46dff6576c29fa1d379c943bb7943aa6e7ce
tree3c0d5871276db4d1e1bc3061e8de0529d39fa5f0
parent3ced804e3118d138781c3e4baa6bf1589b9f2dfd
ash: memalloc: Avoid looping in growstackto

Upstream commit:

    Date: Thu, 31 May 2018 01:51:48 +0800
    memalloc: Avoid looping in growstackto

    Currently growstackto will repeatedly call growstackblock until
    the requisite size is obtained.  This is wasteful.  This patch
    changes growstackblock to take a minimum size instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c