diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f0dfd7de0205..ad1e88d25031 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1425,10 +1425,11 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset, | |||
1425 | map_length = length; | 1425 | map_length = length; |
1426 | ret = btrfs_map_block(map_tree, READ, logical, | 1426 | ret = btrfs_map_block(map_tree, READ, logical, |
1427 | &map_length, NULL, 0); | 1427 | &map_length, NULL, 0); |
1428 | 1428 | /* Will always return 0 or 1 with map_multi == NULL */ | |
1429 | BUG_ON(ret < 0); | ||
1429 | if (map_length < length + size) | 1430 | if (map_length < length + size) |
1430 | return 1; | 1431 | return 1; |
1431 | return ret; | 1432 | return 0; |
1432 | } | 1433 | } |
1433 | 1434 | ||
1434 | /* | 1435 | /* |