summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_map.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-10-16 00:14:37 +0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 19:03:56 +0400
commit6d36dcd48f1e4e7446d603a3df9638bd314a182d (patch)
tree321f6f36de71adaab1754b113401e05d50cd5ebd /fs/btrfs/extent_map.h
parent479965d66e320f1a095bb76027171daa675a9c72 (diff)
downloadlinux-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h
index 895789039ddd..3b3abf34c403 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,