Commit 6fc1e309 authored by Andrew Morton's avatar Andrew Morton Committed by Christoph Hellwig

[PATCH] buffer.c unused vars

- Remove dead variable from block_read_full_page (Oleg Drokin)
parent 0948aa6d
......@@ -2019,7 +2019,7 @@ int block_read_full_page(struct page *page, get_block_t *get_block)
struct inode *inode = page->mapping->host;
sector_t iblock, lblock;
struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE];
unsigned int blocksize, blocks;
unsigned int blocksize;
int nr, i;
int fully_mapped = 1;
......@@ -2032,7 +2032,6 @@ int block_read_full_page(struct page *page, get_block_t *get_block)
create_empty_buffers(page, blocksize, 0);
head = page_buffers(page);
blocks = PAGE_CACHE_SIZE >> inode->i_blkbits;
iblock = (sector_t)page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits);
lblock = (inode->i_size+blocksize-1) >> inode->i_blkbits;
bh = head;
......
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