diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 6b2f2b414fa1..7de7707d939c 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -149,7 +149,7 @@ struct btrfs_block_group_cache *btrfs_lookup_block_group(struct | |||
149 | if (ret) | 149 | if (ret) |
150 | return NULL; | 150 | return NULL; |
151 | 151 | ||
152 | block_group = (struct btrfs_block_group_cache *)ptr; | 152 | block_group = (struct btrfs_block_group_cache *)(unsigned long)ptr; |
153 | 153 | ||
154 | 154 | ||
155 | if (block_group->key.objectid <= bytenr && bytenr <= | 155 | if (block_group->key.objectid <= bytenr && bytenr <= |
@@ -279,7 +279,7 @@ again: | |||
279 | if (ret) | 279 | if (ret) |
280 | break; | 280 | break; |
281 | 281 | ||
282 | cache = (struct btrfs_block_group_cache *)ptr; | 282 | cache = (struct btrfs_block_group_cache *)(unsigned long)ptr; |
283 | last = cache->key.objectid + cache->key.offset; | 283 | last = cache->key.objectid + cache->key.offset; |
284 | used = btrfs_block_group_used(&cache->item); | 284 | used = btrfs_block_group_used(&cache->item); |
285 | 285 | ||
@@ -537,7 +537,7 @@ int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans, | |||
537 | if (ret) | 537 | if (ret) |
538 | break; | 538 | break; |
539 | 539 | ||
540 | cache = (struct btrfs_block_group_cache *)ptr; | 540 | cache = (struct btrfs_block_group_cache *)(unsigned long)ptr; |
541 | err = write_one_cache_group(trans, root, | 541 | err = write_one_cache_group(trans, root, |
542 | path, cache); | 542 | path, cache); |
543 | /* | 543 | /* |
@@ -1541,7 +1541,7 @@ int btrfs_read_block_groups(struct btrfs_root *root) | |||
1541 | found_key.objectid + found_key.offset - 1, | 1541 | found_key.objectid + found_key.offset - 1, |
1542 | bit | EXTENT_LOCKED, GFP_NOFS); | 1542 | bit | EXTENT_LOCKED, GFP_NOFS); |
1543 | set_state_private(block_group_cache, found_key.objectid, | 1543 | set_state_private(block_group_cache, found_key.objectid, |
1544 | (u64)cache); | 1544 | (unsigned long)cache); |
1545 | 1545 | ||
1546 | if (key.objectid >= | 1546 | if (key.objectid >= |
1547 | btrfs_super_total_bytes(&info->super_copy)) | 1547 | btrfs_super_total_bytes(&info->super_copy)) |