diff options
author | Arne Jansen <sensille@gmx.net> | 2011-04-12 04:43:21 -0400 |
---|---|---|
committer | Arne Jansen <sensille@gmx.net> | 2011-05-13 09:36:05 -0400 |
commit | bcd53741cc2af4342ac3ff6983bddc4a1b63b9b4 (patch) | |
tree | 5be83348abb93689effda63918fdec4fb0b5461c /fs/btrfs/volumes.h | |
parent | 7cf96da3ec7ca225acf4f284b0e904a1f5f98821 (diff) |
btrfs: move btrfs_cmp_device_free_bytes to super.c
this function won't be used here anymore, so move it super.c where it is
used for df-calculation
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index cc2eadaf7a27..b502f01f79ed 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -157,21 +157,6 @@ struct map_lookup { | |||
157 | struct btrfs_bio_stripe stripes[]; | 157 | struct btrfs_bio_stripe stripes[]; |
158 | }; | 158 | }; |
159 | 159 | ||
160 | /* Used to sort the devices by max_avail(descending sort) */ | ||
161 | int btrfs_cmp_device_free_bytes(const void *dev_info1, const void *dev_info2); | ||
162 | |||
163 | /* | ||
164 | * sort the devices by max_avail, in which max free extent size of each device | ||
165 | * is stored.(Descending Sort) | ||
166 | */ | ||
167 | static inline void btrfs_descending_sort_devices( | ||
168 | struct btrfs_device_info *devices, | ||
169 | size_t nr_devices) | ||
170 | { | ||
171 | sort(devices, nr_devices, sizeof(struct btrfs_device_info), | ||
172 | btrfs_cmp_device_free_bytes, NULL); | ||
173 | } | ||
174 | |||
175 | int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start, | 160 | int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start, |
176 | u64 end, u64 *length); | 161 | u64 end, u64 *length); |
177 | 162 | ||