Commit 8eec8296 authored by David Sterba's avatar David Sterba

btrfs: remove redundant variable in __do_readpage

The value of page_end is only stored to end, no other use.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 5c2b1fd7
...@@ -2886,8 +2886,7 @@ static int __do_readpage(struct extent_io_tree *tree, ...@@ -2886,8 +2886,7 @@ static int __do_readpage(struct extent_io_tree *tree,
{ {
struct inode *inode = page->mapping->host; struct inode *inode = page->mapping->host;
u64 start = page_offset(page); u64 start = page_offset(page);
u64 page_end = start + PAGE_SIZE - 1; const u64 end = start + PAGE_SIZE - 1;
u64 end;
u64 cur = start; u64 cur = start;
u64 extent_offset; u64 extent_offset;
u64 last_byte = i_size_read(inode); u64 last_byte = i_size_read(inode);
...@@ -2905,7 +2904,6 @@ static int __do_readpage(struct extent_io_tree *tree, ...@@ -2905,7 +2904,6 @@ static int __do_readpage(struct extent_io_tree *tree,
set_page_extent_mapped(page); set_page_extent_mapped(page);
end = page_end;
if (!PageUptodate(page)) { if (!PageUptodate(page)) {
if (cleancache_get_page(page) == 0) { if (cleancache_get_page(page) == 0) {
BUG_ON(blocksize != PAGE_SIZE); BUG_ON(blocksize != PAGE_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment