diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 62d49705d140..b33e0bfb99e1 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/pagemap.h> | 19 | #include <linux/pagemap.h> |
20 | #include <linux/writeback.h> | 20 | #include <linux/writeback.h> |
21 | #include <linux/blkdev.h> | 21 | #include <linux/blkdev.h> |
22 | #include <linux/version.h> | ||
23 | #include "compat.h" | ||
22 | #include "hash.h" | 24 | #include "hash.h" |
23 | #include "crc32c.h" | 25 | #include "crc32c.h" |
24 | #include "ctree.h" | 26 | #include "ctree.h" |
@@ -900,6 +902,7 @@ static int noinline remove_extent_backref(struct btrfs_trans_handle *trans, | |||
900 | return ret; | 902 | return ret; |
901 | } | 903 | } |
902 | 904 | ||
905 | #ifdef BIO_RW_DISCARD | ||
903 | static void btrfs_issue_discard(struct block_device *bdev, | 906 | static void btrfs_issue_discard(struct block_device *bdev, |
904 | u64 start, u64 len) | 907 | u64 start, u64 len) |
905 | { | 908 | { |
@@ -909,7 +912,7 @@ static void btrfs_issue_discard(struct block_device *bdev, | |||
909 | blkdev_issue_discard(bdev, start >> 9, len >> 9); | 912 | blkdev_issue_discard(bdev, start >> 9, len >> 9); |
910 | #endif | 913 | #endif |
911 | } | 914 | } |
912 | 915 | #endif | |
913 | 916 | ||
914 | static int noinline free_extents(struct btrfs_trans_handle *trans, | 917 | static int noinline free_extents(struct btrfs_trans_handle *trans, |
915 | struct btrfs_root *extent_root, | 918 | struct btrfs_root *extent_root, |