summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2012-02-16 16:23:58 +0900
committerDavid Sterba <dsterba@suse.cz>2012-02-16 17:23:17 +0100
commit285190d99fef696ec8b0041787387f013cb71d67 (patch)
treed55c5e3f71718cb21f9349280fb160d0403d082d /fs/btrfs/extent_io.c
parent600a45e1d5e376f679ff9ecc4ce9452710a6d27c (diff)
downloadop-kernel-dev-285190d99fef696ec8b0041787387f013cb71d67.zip
op-kernel-dev-285190d99fef696ec8b0041787387f013cb71d67.tar.gz
Btrfs: check return value of lookup_extent_mapping() correctly
This patch corrects error checking of lookup_extent_mapping(). Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index b05d35a..8d6f55f 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3308,7 +3308,7 @@ int try_release_extent_mapping(struct extent_map_tree *map,
len = end - start + 1;
write_lock(&map->lock);
em = lookup_extent_mapping(map, start, len);
- if (IS_ERR_OR_NULL(em)) {
+ if (!em) {
write_unlock(&map->lock);
break;
}
OpenPOWER on IntegriCloud