diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 20:14:37 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 15:03:56 (GMT) |
commit | 6d36dcd48f1e4e7446d603a3df9638bd314a182d (patch) | |
tree | 321f6f36de71adaab1754b113401e05d50cd5ebd /fs/btrfs/extent_map.h | |
parent | 479965d66e320f1a095bb76027171daa675a9c72 (diff) | |
download | linux-fsl-qoriq-6d36dcd48f1e4e7446d603a3df9638bd314a182d.tar.xz |
Btrfs: Avoid memcpy where possible in extent_buffers
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 8957890..3b3abf3 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h @@ -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, |