On Mon, Sep 13, 2021 at 07:25:56PM +0800, Xie Yongji wrote: > Use invalidate_gendisk() helper to simplify the code for gendisk > invalidation. bdev can't be null here so this looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx> Can you also add a cleanup patch to remove the bdev checks and the entire bdev variable in __loop_clr_fd?