• Jan Kara's avatar
    mtd: Convert to dynamically allocated bdi infrastructure · fa06052d
    Jan Kara authored
    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: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    fa06052d
mtdcore.c 49.1 KB