]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't initialize 'offset' in map_private_extent_buffer()
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 28 Nov 2018 08:54:54 +0000 (09:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:41 +0000 (14:51 +0100)
commit63abc46aa78c040653c5f72755de073cd86e9bb3
treec2eed4b8f7dd2b59cfb2d58b2edc2516c7ef2260
parent13eefaf47ae181ef595f3a5021b13bf2cebe8d93
btrfs: don't initialize 'offset' in map_private_extent_buffer()

In map_private_extent_buffer() the 'offset' variable is initialized to a
page aligned version of the 'start' parameter.

But later on it is overwritten with either the offset from the extent
buffer's start or 0.

So get rid of the initial initialization.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c