On Thu, Dec 02, 2021 at 11:10:41AM +0800, Chao Yu wrote:
Why not relocating this check before f2fs_map_blocks()?
Thanks,
+ iomap->bdev = inode->i_sb->s_bdev;
Are you talking about the check for !f2fs_is_multi_device()? It could go in
either location, but I think it makes the most sense to have it right before the
line that uses 'inode->i_sb->s_bdev', since that is the place which makes the
assumption that the filesystem has only one block device.
- Eric