|
@@ -1568,18 +1568,15 @@ static int remove_extent_backref(struct btrfs_trans_handle *trans,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-#ifdef BIO_RW_DISCARD
|
|
|
static void btrfs_issue_discard(struct block_device *bdev,
|
|
|
u64 start, u64 len)
|
|
|
{
|
|
|
blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_KERNEL);
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
|
|
|
u64 num_bytes)
|
|
|
{
|
|
|
-#ifdef BIO_RW_DISCARD
|
|
|
int ret;
|
|
|
u64 map_length = num_bytes;
|
|
|
struct btrfs_multi_bio *multi = NULL;
|
|
@@ -1606,9 +1603,6 @@ static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
-#else
|
|
|
- return 0;
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
|