bdi: fix use-after-free for dev_name(bdi->dev)

From: Christoph Hellwig
Date: Thu Apr 16 2020 - 03:15:47 EST


Hi all,

the first three patches are my take on the proposal from Yufen Yu
to fix the use after free of the device name of the bdi device.

The rest is vaguely related cleanups.