Re: [PATCH] zram: Allow backing device to be assigned after init

From: Andrew Morton
Date: Fri Oct 01 2021 - 19:22:08 EST


On Fri, 1 Oct 2021 11:16:27 -0700 Brian Geffon <bgeffon@xxxxxxxxxx> wrote:

> There does not appear to be a technical reason to not
> allow the zram backing device to be assigned after the
> zram device is initialized.
>
> This change will allow for the backing device to be assigned
> as long as no backing device is already assigned. In that
> event backing_dev would return -EEXIST.

Why is this useful?