aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs
diff options
context:
space:
mode:
authorTanmay Bhushan <007047221b@gmail.com>2022-12-31 16:05:01 +0100
committerDavid Sterba <dsterba@suse.com>2023-01-03 15:53:18 +0100
commit946c2923e76327343e4460e8bb7ec7b4d4589397 (patch)
tree7b0cccdf2a2e4c03dbd1f19a8ec1b5b6f2fdbdd6 /fs
parentbtrfs: fix fscrypt name leak after failure to join log transaction (diff)
downloadwireguard-linux-946c2923e76327343e4460e8bb7ec7b4d4589397.tar.xz
wireguard-linux-946c2923e76327343e4460e8bb7ec7b4d4589397.zip
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')
-rw-r--r--fs/btrfs/inode.c2
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)