• J
    mtd: Convert to dynamically allocated bdi infrastructure · fa06052d
    Jan Kara 提交于
    MTD already allocates backing_dev_info dynamically. Convert it to use
    generic infrastructure for this including proper refcounting. We drop
    mtd->backing_dev_info as its only use was to pass mtd_bdi pointer from
    one file into another and if we wanted to keep that in a clean way, we'd
    have to make mtd hold and drop bdi reference as needed which seems
    pointless for passing one global pointer...
    
    CC: David Woodhouse <dwmw2@infradead.org>
    CC: Brian Norris <computersforpeace@gmail.com>
    CC: linux-mtd@lists.infradead.org
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NJan Kara <jack@suse.cz>
    Signed-off-by: NJens Axboe <axboe@fb.com>
    fa06052d
mtdcore.c 49.1 KB