diff options
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r-- | fs/btrfs/free-space-cache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index f4926c0f3c8c..09462adfbe33 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c | |||
@@ -443,7 +443,8 @@ void btrfs_remove_free_space_cache(struct btrfs_block_group_cache *block_group) | |||
443 | mutex_unlock(&block_group->alloc_mutex); | 443 | mutex_unlock(&block_group->alloc_mutex); |
444 | } | 444 | } |
445 | 445 | ||
446 | struct btrfs_free_space *btrfs_find_free_space_offset(struct | 446 | #if 0 |
447 | static struct btrfs_free_space *btrfs_find_free_space_offset(struct | ||
447 | btrfs_block_group_cache | 448 | btrfs_block_group_cache |
448 | *block_group, u64 offset, | 449 | *block_group, u64 offset, |
449 | u64 bytes) | 450 | u64 bytes) |
@@ -458,7 +459,7 @@ struct btrfs_free_space *btrfs_find_free_space_offset(struct | |||
458 | return ret; | 459 | return ret; |
459 | } | 460 | } |
460 | 461 | ||
461 | struct btrfs_free_space *btrfs_find_free_space_bytes(struct | 462 | static struct btrfs_free_space *btrfs_find_free_space_bytes(struct |
462 | btrfs_block_group_cache | 463 | btrfs_block_group_cache |
463 | *block_group, u64 offset, | 464 | *block_group, u64 offset, |
464 | u64 bytes) | 465 | u64 bytes) |
@@ -472,6 +473,7 @@ struct btrfs_free_space *btrfs_find_free_space_bytes(struct | |||
472 | 473 | ||
473 | return ret; | 474 | return ret; |
474 | } | 475 | } |
476 | #endif | ||
475 | 477 | ||
476 | struct btrfs_free_space *btrfs_find_free_space(struct btrfs_block_group_cache | 478 | struct btrfs_free_space *btrfs_find_free_space(struct btrfs_block_group_cache |
477 | *block_group, u64 offset, | 479 | *block_group, u64 offset, |