diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index bf7782fc5939..d4a35283d99e 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -1568,18 +1568,15 @@ static int remove_extent_backref(struct btrfs_trans_handle *trans, | |||
1568 | return ret; | 1568 | return ret; |
1569 | } | 1569 | } |
1570 | 1570 | ||
1571 | #ifdef BIO_RW_DISCARD | ||
1572 | static void btrfs_issue_discard(struct block_device *bdev, | 1571 | static void btrfs_issue_discard(struct block_device *bdev, |
1573 | u64 start, u64 len) | 1572 | u64 start, u64 len) |
1574 | { | 1573 | { |
1575 | blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_KERNEL); | 1574 | blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_KERNEL); |
1576 | } | 1575 | } |
1577 | #endif | ||
1578 | 1576 | ||
1579 | static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, | 1577 | static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, |
1580 | u64 num_bytes) | 1578 | u64 num_bytes) |
1581 | { | 1579 | { |
1582 | #ifdef BIO_RW_DISCARD | ||
1583 | int ret; | 1580 | int ret; |
1584 | u64 map_length = num_bytes; | 1581 | u64 map_length = num_bytes; |
1585 | struct btrfs_multi_bio *multi = NULL; | 1582 | struct btrfs_multi_bio *multi = NULL; |
@@ -1606,9 +1603,6 @@ static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, | |||
1606 | } | 1603 | } |
1607 | 1604 | ||
1608 | return ret; | 1605 | return ret; |
1609 | #else | ||
1610 | return 0; | ||
1611 | #endif | ||
1612 | } | 1606 | } |
1613 | 1607 | ||
1614 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, | 1608 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, |