writeback: don't warn on an unregistered BDI in __mark_inode_dirty
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 12:26:13 +0000 (14:26 +0200)
committerJan Kara <jack@suse.cz>
Wed, 16 Dec 2020 10:56:02 +0000 (11:56 +0100)
commitf7387170339afb473a0d95b7732f904346f9795e
tree505166eb10ed08ffe2698f2ca01e8b5d27f2a191
parente51d68e76d604c6d5d1eb13ae1d6da7f6c8c0dfc
writeback: don't warn on an unregistered BDI in __mark_inode_dirty

BDIs get unregistered during device removal, and this WARN can be
trivially triggered by hot-removing a NVMe device while running fsx
It is otherwise harmless as we still hold a BDI reference, and the
writeback has been shut down already.

Link: https://lore.kernel.org/r/20200928122613.434820-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/fs-writeback.c