diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index a5faf8e33baa..47dea7118e0e 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/kobject.h> | 30 | #include <linux/kobject.h> |
31 | #include <trace/events/btrfs.h> | 31 | #include <trace/events/btrfs.h> |
32 | #include <asm/kmap_types.h> | 32 | #include <asm/kmap_types.h> |
33 | #include <linux/pagemap.h> | ||
33 | #include "extent_io.h" | 34 | #include "extent_io.h" |
34 | #include "extent_map.h" | 35 | #include "extent_map.h" |
35 | #include "async-thread.h" | 36 | #include "async-thread.h" |
@@ -2117,6 +2118,11 @@ static inline bool btrfs_mixed_space_info(struct btrfs_space_info *space_info) | |||
2117 | (space_info->flags & BTRFS_BLOCK_GROUP_DATA)); | 2118 | (space_info->flags & BTRFS_BLOCK_GROUP_DATA)); |
2118 | } | 2119 | } |
2119 | 2120 | ||
2121 | static inline gfp_t btrfs_alloc_write_mask(struct address_space *mapping) | ||
2122 | { | ||
2123 | return mapping_gfp_mask(mapping) & ~__GFP_FS; | ||
2124 | } | ||
2125 | |||
2120 | /* extent-tree.c */ | 2126 | /* extent-tree.c */ |
2121 | static inline u64 btrfs_calc_trans_metadata_size(struct btrfs_root *root, | 2127 | static inline u64 btrfs_calc_trans_metadata_size(struct btrfs_root *root, |
2122 | unsigned num_items) | 2128 | unsigned num_items) |