Btrfs: Avoid memcpy where possible in extent_buffers

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2007-10-15 16:14:37 -04:00
parent 479965d66e
commit 6d36dcd48f
4 changed files with 147 additions and 41 deletions

View File

@@ -62,14 +62,13 @@ struct extent_state {
struct list_head list;
};
#define EXTENT_BUFFER_SIZE(nr) (sizeof(struct extent_buffer) + \
(nr - 1) * sizeof(struct page *))
struct extent_buffer {
u64 start;
unsigned long len;
atomic_t refs;
int flags;
struct page *pages[];
struct list_head list;
struct page *first_page;
};
typedef struct extent_map *(get_extent_t)(struct inode *inode,