Skip to content

Commit 946c292

Browse files
tanmaybhushankdave
authored andcommitted
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: a196a89 ("btrfs: do not reset extent map members for inline extents read") Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Tanmay Bhushan <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent fee4c19 commit 946c292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7092,7 +7092,7 @@ struct extent_map *btrfs_get_extent(struct btrfs_inode *inode,
70927092
* Other members are not utilized for inline extents.
70937093
*/
70947094
ASSERT(em->block_start == EXTENT_MAP_INLINE);
7095-
ASSERT(em->len = fs_info->sectorsize);
7095+
ASSERT(em->len == fs_info->sectorsize);
70967096

70977097
ret = read_inline_extent(inode, path, page);
70987098
if (ret < 0)

0 commit comments

Comments
 (0)