Lines Matching refs:em
35 /* This em is merged from two or more physically adjacent ems */
58 * Generation of the extent map, for merged em it's the highest
76 static inline void extent_map_set_compression(struct extent_map *em,
80 em->flags |= EXTENT_FLAG_COMPRESS_ZLIB;
82 em->flags |= EXTENT_FLAG_COMPRESS_LZO;
84 em->flags |= EXTENT_FLAG_COMPRESS_ZSTD;
87 static inline enum btrfs_compression_type extent_map_compression(const struct extent_map *em)
89 if (em->flags & EXTENT_FLAG_COMPRESS_ZLIB)
92 if (em->flags & EXTENT_FLAG_COMPRESS_LZO)
95 if (em->flags & EXTENT_FLAG_COMPRESS_ZSTD)
105 static inline bool extent_map_is_compressed(const struct extent_map *em)
107 return (em->flags & (EXTENT_FLAG_COMPRESS_ZLIB |
112 static inline int extent_map_in_tree(const struct extent_map *em)
114 return !RB_EMPTY_NODE(&em->rb_node);
117 static inline u64 extent_map_end(const struct extent_map *em)
119 if (em->start + em->len < em->start)
121 return em->start + em->len;
127 void remove_extent_mapping(struct extent_map_tree *tree, struct extent_map *em);
132 void free_extent_map(struct extent_map *em);
136 void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em);