mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
Btrfs: Allow tree blocks larger than the page size
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
1a5bc167f6
commit
db94535db7
15 changed files with 738 additions and 497 deletions
|
@ -70,7 +70,12 @@ struct extent_buffer {
|
|||
struct list_head list;
|
||||
struct list_head leak_list;
|
||||
struct page *first_page;
|
||||
struct page *last_page;
|
||||
unsigned long alloc_addr;
|
||||
char *map_token;
|
||||
char *kaddr;
|
||||
unsigned long map_start;
|
||||
unsigned long map_len;
|
||||
};
|
||||
|
||||
typedef struct extent_map *(get_extent_t)(struct inode *inode,
|
||||
|
@ -147,11 +152,6 @@ static inline void extent_buffer_get(struct extent_buffer *eb)
|
|||
atomic_inc(&eb->refs);
|
||||
}
|
||||
|
||||
static inline u64 extent_buffer_blocknr(struct extent_buffer *eb)
|
||||
{
|
||||
return eb->start / 4096;
|
||||
}
|
||||
|
||||
int memcmp_extent_buffer(struct extent_buffer *eb, const void *ptrv,
|
||||
unsigned long start,
|
||||
unsigned long len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue