OSDN Git Service

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)
commit951e05a90469e29326715e7e3aefd4680748b4fa
treea5a44b1dde45f55237363a9b3710e719fc7dffc9
parentd00c2d9c76975d70089418dc1447b51da3a6a118
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