aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorLiFan2017-11-25 11:46:18 +0800
committerJaegeuk Kim2018-01-02 19:27:28 -0800
commit736c0a74856d762b09a997d28e3ff6d8bdcf942c (patch)
tree1257e0afcb8dcb8c74dd9cdaeb3297cb87d2ffa9 /fs/f2fs/data.c
parent21020812c9e1ab593367fad9ce579f842a0b406d (diff)
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>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 3fa20a932dd7..457a60ffd3ee 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1204,7 +1204,6 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
unsigned nr_pages)
{
struct bio *bio = NULL;
- unsigned page_idx;
sector_t last_block_in_bio = 0;
struct inode *inode = mapping->host;
const unsigned blkbits = inode->i_blkbits;
@@ -1221,8 +1220,7 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
map.m_flags = 0;
map.m_next_pgofs = NULL;
- for (page_idx = 0; nr_pages; page_idx++, nr_pages--) {
-
+ for (; nr_pages; nr_pages--) {
if (pages) {
page = list_last_entry(pages, struct page, lru);