md-bitmap: small cleanups
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Sat, 7 Dec 2019 03:00:08 +0000 (11:00 +0800)
committerSong Liu <songliubraving@fb.com>
Mon, 13 Jan 2020 19:44:09 +0000 (11:44 -0800)
commit55180498dfd5f3c7e2d2c0e470f7cede1acee248
treec6f79ebea0d79129c5afa0a386908d0228461491
parent8e42d239cb027143915cae13eb2ecf1360ee24de
md-bitmap: small cleanups

In md_bitmap_unplug, bitmap->storage.filemap is double checked.

In md_bitmap_daemon_work, bitmap->storage.filemap should be checked
before reference.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md-bitmap.c