mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 13:34:30 +00:00
btrfs: fix ASSERT em->len condition in btrfs_get_extent
The em->len value is supposed to be verified in the assertion condition though we expect it to be same as the sectorsize. Fixes: a196a8944f77 ("btrfs: do not reset extent map members for inline extents read") Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Tanmay Bhushan <007047221b@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
fee4c19937
commit
946c2923e7
@ -7092,7 +7092,7 @@ next:
|
||||
* Other members are not utilized for inline extents.
|
||||
*/
|
||||
ASSERT(em->block_start == EXTENT_MAP_INLINE);
|
||||
ASSERT(em->len = fs_info->sectorsize);
|
||||
ASSERT(em->len == fs_info->sectorsize);
|
||||
|
||||
ret = read_inline_extent(inode, path, page);
|
||||
if (ret < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user