btrfs: kill extent_buffer_page helper
It used to be more complex but now it's just a simple array access. Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
a50924e3a4
commit
fb85fc9a67
2 changed files with 26 additions and 35 deletions
|
|
@ -279,12 +279,6 @@ static inline unsigned long num_extent_pages(u64 start, u64 len)
|
|||
(start >> PAGE_CACHE_SHIFT);
|
||||
}
|
||||
|
||||
static inline struct page *extent_buffer_page(struct extent_buffer *eb,
|
||||
unsigned long i)
|
||||
{
|
||||
return eb->pages[i];
|
||||
}
|
||||
|
||||
static inline void extent_buffer_get(struct extent_buffer *eb)
|
||||
{
|
||||
atomic_inc(&eb->refs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue