X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbtrfs%2Ffile.c;h=7084140d5940e68f653ad8919a0084549d6b8e1b;hb=007a14af2649c9ac77f38cd23469518ffb8b355a;hp=c1d3a818731ab3587ff1e89d75015d78710233dc;hpb=15a831f253c8714181f9dddc204fb6592d61bc92;p=pandora-kernel.git diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index c1d3a818731a..7084140d5940 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -186,6 +186,7 @@ int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, split = alloc_extent_map(GFP_NOFS); if (!split2) split2 = alloc_extent_map(GFP_NOFS); + BUG_ON(!split || !split2); write_lock(&em_tree->lock); em = lookup_extent_mapping(em_tree, start, len);