diff options
author | Tanmay Bhushan <007047221b@gmail.com> | 2022-12-31 18:05:01 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-01-03 17:53:18 +0300 |
commit | 946c2923e76327343e4460e8bb7ec7b4d4589397 (patch) | |
tree | 7b0cccdf2a2e4c03dbd1f19a8ec1b5b6f2fdbdd6 /fs/btrfs | |
parent | fee4c19937439693f2420a916169d08e88576e8e (diff) | |
download | linux-946c2923e76327343e4460e8bb7ec7b4d4589397.tar.xz |
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index bfcbe64eb8b3..940b404c8f28 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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) |