diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index b362b45dd757..cbc9d0d2c12d 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -1916,7 +1916,7 @@ restore: | |||
1916 | } | 1916 | } |
1917 | 1917 | ||
1918 | /* Used to sort the devices by max_avail(descending sort) */ | 1918 | /* Used to sort the devices by max_avail(descending sort) */ |
1919 | static int btrfs_cmp_device_free_bytes(const void *dev_info1, | 1919 | static inline int btrfs_cmp_device_free_bytes(const void *dev_info1, |
1920 | const void *dev_info2) | 1920 | const void *dev_info2) |
1921 | { | 1921 | { |
1922 | if (((struct btrfs_device_info *)dev_info1)->max_avail > | 1922 | if (((struct btrfs_device_info *)dev_info1)->max_avail > |
@@ -1945,8 +1945,8 @@ static inline void btrfs_descending_sort_devices( | |||
1945 | * The helper to calc the free space on the devices that can be used to store | 1945 | * The helper to calc the free space on the devices that can be used to store |
1946 | * file data. | 1946 | * file data. |
1947 | */ | 1947 | */ |
1948 | static int btrfs_calc_avail_data_space(struct btrfs_fs_info *fs_info, | 1948 | static inline int btrfs_calc_avail_data_space(struct btrfs_fs_info *fs_info, |
1949 | u64 *free_bytes) | 1949 | u64 *free_bytes) |
1950 | { | 1950 | { |
1951 | struct btrfs_device_info *devices_info; | 1951 | struct btrfs_device_info *devices_info; |
1952 | struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; | 1952 | struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; |