diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-12-12 10:42:34 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-02-25 16:13:18 +0300 |
commit | 02950af4e3b7dbbb9c5483da4d93d53ed0fd27a8 (patch) | |
tree | 259a0732f631d4429baa92c720c7dc273144cc9c /fs/btrfs/inode.c | |
parent | f3714ef479d24d436d8cda0f1011c4001aee409c (diff) | |
download | linux-02950af4e3b7dbbb9c5483da4d93d53ed0fd27a8.tar.xz |
btrfs: Remove redundant assignment in btrfs_get_extent_fiemap
hole_len is only used if the hole falls within the requested range. Make
that explicitly clear by only assigning in the corresponding branch.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-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 6a6732b8fcf0..14627f3466d3 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7005,7 +7005,7 @@ struct extent_map *btrfs_get_extent_fiemap(struct btrfs_inode *inode, if (delalloc_len > 0) { u64 hole_start; - u64 hole_len = len; + u64 hole_len; const u64 hole_end = extent_map_end(hole_em); em = alloc_extent_map(); |