diff options
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 2b92f1070274..f53d8c976219 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -2270,7 +2270,7 @@ int extent_prepare_write(struct extent_map_tree *tree, | |||
2270 | kunmap_atomic(kaddr, KM_USER0); | 2270 | kunmap_atomic(kaddr, KM_USER0); |
2271 | } | 2271 | } |
2272 | if ((em->block_start != EXTENT_MAP_HOLE && | 2272 | if ((em->block_start != EXTENT_MAP_HOLE && |
2273 | em->block_start != EXTENT_MAP_INLINE) && | 2273 | em->block_start != EXTENT_MAP_INLINE) && |
2274 | !isnew && !PageUptodate(page) && | 2274 | !isnew && !PageUptodate(page) && |
2275 | (block_off_end > to || block_off_start < from) && | 2275 | (block_off_end > to || block_off_start < from) && |
2276 | !test_range_bit(tree, block_start, cur_end, | 2276 | !test_range_bit(tree, block_start, cur_end, |
@@ -2279,7 +2279,7 @@ int extent_prepare_write(struct extent_map_tree *tree, | |||
2279 | u64 extent_offset = block_start - em->start; | 2279 | u64 extent_offset = block_start - em->start; |
2280 | size_t iosize; | 2280 | size_t iosize; |
2281 | sector = (em->block_start + extent_offset) >> 9; | 2281 | sector = (em->block_start + extent_offset) >> 9; |
2282 | iosize = (cur_end - block_start + blocksize - 1) & | 2282 | iosize = (cur_end - block_start + blocksize) & |
2283 | ~((u64)blocksize - 1); | 2283 | ~((u64)blocksize - 1); |
2284 | /* | 2284 | /* |
2285 | * we've already got the extent locked, but we | 2285 | * we've already got the extent locked, but we |