f2fs: remove an excess variable

Remove the variable page_idx which no one would miss.

Signed-off-by: Fan li <fanofcode.li@samsung.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
LiFan 2017-11-25 11:46:18 +08:00 committed by Jaegeuk Kim
parent e1f9be2f7c
commit b01e03d724

View file

@ -1202,7 +1202,6 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
unsigned nr_pages) unsigned nr_pages)
{ {
struct bio *bio = NULL; struct bio *bio = NULL;
unsigned page_idx;
sector_t last_block_in_bio = 0; sector_t last_block_in_bio = 0;
struct inode *inode = mapping->host; struct inode *inode = mapping->host;
const unsigned blkbits = inode->i_blkbits; const unsigned blkbits = inode->i_blkbits;
@ -1219,8 +1218,7 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
map.m_flags = 0; map.m_flags = 0;
map.m_next_pgofs = NULL; map.m_next_pgofs = NULL;
for (page_idx = 0; nr_pages; page_idx++, nr_pages--) { for (; nr_pages; nr_pages--) {
if (pages) { if (pages) {
page = list_last_entry(pages, struct page, lru); page = list_last_entry(pages, struct page, lru);