Lines Matching +full:1 +full:eb
49 #define EXTENT_PAGE_PRIVATE 1
54 * 1. The bitmaps must be little-endian on disk.
59 #define BYTE_MASK ((1 << BITS_PER_BYTE) - 1)
61 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK)
63 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
85 /* >= 0 if eb belongs to a log tree, -1 otherwise */
98 struct extent_buffer *eb; member
99 /* Block group @eb resides in. Only used for zoned mode. */
106 * @eb: target extent buffer
111 static inline size_t get_eb_offset_in_page(const struct extent_buffer *eb, in get_eb_offset_in_page() argument
115 * For sectorsize == PAGE_SIZE case, eb->start will always be aligned in get_eb_offset_in_page()
119 * to the eb, thus we have to take the eb->start into consideration. in get_eb_offset_in_page()
121 return offset_in_page(offset + eb->start); in get_eb_offset_in_page()
209 void free_extent_buffer(struct extent_buffer *eb);
210 void free_extent_buffer_stale(struct extent_buffer *eb);
212 #define WAIT_COMPLETE 1
214 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, int mirror_num,
216 void wait_on_extent_buffer_writeback(struct extent_buffer *eb);
221 static inline int num_extent_pages(const struct extent_buffer *eb) in num_extent_pages() argument
225 * sectorsize, it's just eb->len >> PAGE_SHIFT. in num_extent_pages()
230 return (eb->len >> PAGE_SHIFT) ?: 1; in num_extent_pages()
233 static inline int extent_buffer_uptodate(const struct extent_buffer *eb) in extent_buffer_uptodate() argument
235 return test_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags); in extent_buffer_uptodate()
238 int memcmp_extent_buffer(const struct extent_buffer *eb, const void *ptrv,
240 void read_extent_buffer(const struct extent_buffer *eb, void *dst,
243 int read_extent_buffer_to_user_nofault(const struct extent_buffer *eb,
246 void write_extent_buffer(const struct extent_buffer *eb, const void *src,
250 const struct extent_buffer *eb, const void *chunk_tree_uuid) in write_extent_buffer_chunk_tree_uuid() argument
252 write_extent_buffer(eb, chunk_tree_uuid, in write_extent_buffer_chunk_tree_uuid()
257 static inline void write_extent_buffer_fsid(const struct extent_buffer *eb, in write_extent_buffer_fsid() argument
260 write_extent_buffer(eb, fsid, offsetof(struct btrfs_header, fsid), in write_extent_buffer_fsid()
276 void memzero_extent_buffer(const struct extent_buffer *eb, unsigned long start,
278 int extent_buffer_test_bit(const struct extent_buffer *eb, unsigned long start,
280 void extent_buffer_bitmap_set(const struct extent_buffer *eb, unsigned long start,
282 void extent_buffer_bitmap_clear(const struct extent_buffer *eb,
285 void set_extent_buffer_dirty(struct extent_buffer *eb);
286 void set_extent_buffer_uptodate(struct extent_buffer *eb);
287 void clear_extent_buffer_uptodate(struct extent_buffer *eb);