summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba2017-06-06 19:50:13 +0200
committerDavid Sterba2018-03-31 01:26:52 +0200
commit8eec8296a086cf9949dc4b91494fc944778ba5a0 (patch)
tree8e78fb5186d2b4d7201fba9e2124fae52181c8a2 /fs/btrfs/extent_io.c
parentbtrfs: assume that bio_ret is always valid in submit_extent_page (diff)
downloadkernel-qcow2-linux-8eec8296a086cf9949dc4b91494fc944778ba5a0.tar.gz
kernel-qcow2-linux-8eec8296a086cf9949dc4b91494fc944778ba5a0.tar.xz
kernel-qcow2-linux-8eec8296a086cf9949dc4b91494fc944778ba5a0.zip
btrfs: remove redundant variable in __do_readpage
The value of page_end is only stored to end, no other use. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index cf6253bc5126..079489892e46 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2886,8 +2886,7 @@ static int __do_readpage(struct extent_io_tree *tree,
{
struct inode *inode = page->mapping->host;
u64 start = page_offset(page);
- u64 page_end = start + PAGE_SIZE - 1;
- u64 end;
+ const u64 end = start + PAGE_SIZE - 1;
u64 cur = start;
u64 extent_offset;
u64 last_byte = i_size_read(inode);
@@ -2905,7 +2904,6 @@ static int __do_readpage(struct extent_io_tree *tree,
set_page_extent_mapped(page);
- end = page_end;
if (!PageUptodate(page)) {
if (cleancache_get_page(page) == 0) {
BUG_ON(blocksize != PAGE_SIZE);