Re: [PATCH 2/5] btrfs: get bdev from latest_dev for dio bh_result

2019-10-11 Thread David Sterba
On Fri, Oct 11, 2019 at 08:26:42PM +0200, David Sterba wrote: > You're right, and actually I got crashes in clean_bdev_aliases when I > supplied a NULL bdev, so I'll add it to the changelog. Thanks. Unless there are further comments, I won't resend the whole patchset. The changelog in this patch w

Re: [PATCH 2/5] btrfs: get bdev from latest_dev for dio bh_result

2019-10-11 Thread David Sterba
On Wed, Oct 09, 2019 at 01:42:00PM +0300, Nikolay Borisov wrote: > > > On 7.10.19 г. 22:37 ч., David Sterba wrote: > > To remove use of extent_map::bdev we need to find a replacement, and the > > latest_bdev is the only one we can use here, because inode::i_bdev and > > superblock::s_bdev are NUL

Re: [PATCH 2/5] btrfs: get bdev from latest_dev for dio bh_result

2019-10-09 Thread Nikolay Borisov
On 7.10.19 г. 22:37 ч., David Sterba wrote: > To remove use of extent_map::bdev we need to find a replacement, and the > latest_bdev is the only one we can use here, because inode::i_bdev and > superblock::s_bdev are NULL. > > The only thing that DIO code uses from the bdev is the blocksize to

[PATCH 2/5] btrfs: get bdev from latest_dev for dio bh_result

2019-10-07 Thread David Sterba
To remove use of extent_map::bdev we need to find a replacement, and the latest_bdev is the only one we can use here, because inode::i_bdev and superblock::s_bdev are NULL. The only thing that DIO code uses from the bdev is the blocksize to perform alignment checks in do_blockdev_direct_IO, but we