]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove impossible condition from mergable_maps
authorNikolay Borisov <nborisov@suse.com>
Tue, 8 Jan 2019 14:53:46 +0000 (16:53 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:21 +0000 (14:13 +0100)
commitbe21d401ed883003544d081f99b29a68628f6647
treea5a44b1dde45f55237363a9b3710e719fc7dffc9
parent7333c7cb4baaed52a506fb79446b030626d0a883
btrfs: Remove impossible condition from mergable_maps

We can never have extents marked as EXTENT_MAP_DELALLOC since this
value is only ever used by btrfs_get_extent_fiemap. In this case the
extent map is created by btrfs_get_extent_fiemap and is never really
published, this flag is used to return the corresponding userspace one.
Considering this, it's pointless having a check for EXTENT_MAP_DELALLOC
in mergable_maps. Just remove it.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h