| commit | 06007b9cd2b4d1cc63310b1260bbdb2333c3e23d | [log] [tgz] |
|---|---|---|
| author | Yu Kuai <yukuai3@huawei.com> | Thu Apr 11 15:53:46 2024 +0100 |
| committer | Christian Brauner <brauner@kernel.org> | Tue Apr 16 14:52:11 2024 +0200 |
| tree | 70b9e6ebad5134e82d39b56d88183290b979fac8 | |
| parent | 5728e526c4bedffb03a0e4ef44328e351db11507 [diff] |
block2mtd: prevent direct access of bd_inode Now that block2mtd stash the file of opened bdev, it's ok to get inode from the file. [AV: use bdev_nr_bytes()] Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Link: https://lore.kernel.org/r/20240411145346.2516848-11-viro@zeniv.linux.org.uk Signed-off-by: Christian Brauner <brauner@kernel.org>