diff options
-rw-r--r-- | fs/btrfs/compat.h | 1 | ||||
-rw-r--r-- | fs/btrfs/compression.c | 2 | ||||
-rw-r--r-- | fs/btrfs/disk-io.c | 3 | ||||
-rw-r--r-- | fs/btrfs/extent-tree.c | 5 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 2 | ||||
-rw-r--r-- | fs/btrfs/ioctl.c | 1 | ||||
-rw-r--r-- | fs/btrfs/super.c | 2 | ||||
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
8 files changed, 14 insertions, 4 deletions
diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h index dd1defdbfa36..75e4426d6fbb 100644 --- a/fs/btrfs/compat.h +++ b/fs/btrfs/compat.h | |||
@@ -25,6 +25,7 @@ static inline struct dentry *d_obtain_alias(struct inode *inode) | |||
25 | # define __pagevec_lru_add_file __pagevec_lru_add | 25 | # define __pagevec_lru_add_file __pagevec_lru_add |
26 | # define open_bdev_exclusive open_bdev_excl | 26 | # define open_bdev_exclusive open_bdev_excl |
27 | # define close_bdev_exclusive(bdev, mode) close_bdev_excl(bdev) | 27 | # define close_bdev_exclusive(bdev, mode) close_bdev_excl(bdev) |
28 | typedef unsigned __bitwise__ fmode_t; | ||
28 | #endif | 29 | #endif |
29 | 30 | ||
30 | 31 | ||
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index df05f513e1eb..4febe2eb0b83 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c | |||
@@ -34,13 +34,13 @@ | |||
34 | #include <linux/bit_spinlock.h> | 34 | #include <linux/bit_spinlock.h> |
35 | #include <linux/version.h> | 35 | #include <linux/version.h> |
36 | #include <linux/pagevec.h> | 36 | #include <linux/pagevec.h> |
37 | #include "compat.h" | ||
37 | #include "ctree.h" | 38 | #include "ctree.h" |
38 | #include "disk-io.h" | 39 | #include "disk-io.h" |
39 | #include "transaction.h" | 40 | #include "transaction.h" |
40 | #include "btrfs_inode.h" | 41 | #include "btrfs_inode.h" |
41 | #include "volumes.h" | 42 | #include "volumes.h" |
42 | #include "ordered-data.h" | 43 | #include "ordered-data.h" |
43 | #include "compat.h" | ||
44 | #include "compression.h" | 44 | #include "compression.h" |
45 | #include "extent_io.h" | 45 | #include "extent_io.h" |
46 | #include "extent_map.h" | 46 | #include "extent_map.h" |
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index c8dcb47b6d7d..981652233f70 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -26,7 +26,8 @@ | |||
26 | #include <linux/buffer_head.h> // for block_sync_page | 26 | #include <linux/buffer_head.h> // for block_sync_page |
27 | #include <linux/workqueue.h> | 27 | #include <linux/workqueue.h> |
28 | #include <linux/kthread.h> | 28 | #include <linux/kthread.h> |
29 | # include <linux/freezer.h> | 29 | #include <linux/freezer.h> |
30 | #include "compat.h" | ||
30 | #include "crc32c.h" | 31 | #include "crc32c.h" |
31 | #include "ctree.h" | 32 | #include "ctree.h" |
32 | #include "disk-io.h" | 33 | #include "disk-io.h" |
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, |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 2c77e0957f74..7a8ad4292f75 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/xattr.h> | 38 | #include <linux/xattr.h> |
39 | #include <linux/posix_acl.h> | 39 | #include <linux/posix_acl.h> |
40 | #include <linux/falloc.h> | 40 | #include <linux/falloc.h> |
41 | #include "compat.h" | ||
41 | #include "ctree.h" | 42 | #include "ctree.h" |
42 | #include "disk-io.h" | 43 | #include "disk-io.h" |
43 | #include "transaction.h" | 44 | #include "transaction.h" |
@@ -47,7 +48,6 @@ | |||
47 | #include "volumes.h" | 48 | #include "volumes.h" |
48 | #include "ordered-data.h" | 49 | #include "ordered-data.h" |
49 | #include "xattr.h" | 50 | #include "xattr.h" |
50 | #include "compat.h" | ||
51 | #include "tree-log.h" | 51 | #include "tree-log.h" |
52 | #include "ref-cache.h" | 52 | #include "ref-cache.h" |
53 | #include "compression.h" | 53 | #include "compression.h" |
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 8828109fa58e..f3d68457e66a 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <linux/version.h> | 41 | #include <linux/version.h> |
42 | #include <linux/xattr.h> | 42 | #include <linux/xattr.h> |
43 | #include <linux/vmalloc.h> | 43 | #include <linux/vmalloc.h> |
44 | #include "compat.h" | ||
44 | #include "ctree.h" | 45 | #include "ctree.h" |
45 | #include "disk-io.h" | 46 | #include "disk-io.h" |
46 | #include "transaction.h" | 47 | #include "transaction.h" |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 77c5eff3e209..1975ea273dc3 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -37,6 +37,8 @@ | |||
37 | #include <linux/ctype.h> | 37 | #include <linux/ctype.h> |
38 | #include <linux/namei.h> | 38 | #include <linux/namei.h> |
39 | #include <linux/miscdevice.h> | 39 | #include <linux/miscdevice.h> |
40 | #include <linux/version.h> | ||
41 | #include "compat.h" | ||
40 | #include "ctree.h" | 42 | #include "ctree.h" |
41 | #include "disk-io.h" | 43 | #include "disk-io.h" |
42 | #include "transaction.h" | 44 | #include "transaction.h" |
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c3ee63f92a5f..724ead54529b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -20,7 +20,9 @@ | |||
20 | #include <linux/buffer_head.h> | 20 | #include <linux/buffer_head.h> |
21 | #include <linux/blkdev.h> | 21 | #include <linux/blkdev.h> |
22 | #include <linux/random.h> | 22 | #include <linux/random.h> |
23 | #include <linux/version.h> | ||
23 | #include <asm/div64.h> | 24 | #include <asm/div64.h> |
25 | #include "compat.h" | ||
24 | #include "ctree.h" | 26 | #include "ctree.h" |
25 | #include "extent_map.h" | 27 | #include "extent_map.h" |
26 | #include "disk-io.h" | 28 | #include "disk-io.h" |