add patch migrate-into-vfs-crypto-engine
[ext4-patch-queue.git] / remove-unused-page_idx
blobc92f041c8df7cdd2c8ca06a4d4afa0cda6aefd33
1 ext4: remove unused page_idx
3 From: yalin wang <yalin.wang2010@gmail.com>
5 Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
6 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 Reviewed-by: Jan Kara <jack@suse.com>
8 ---
9  fs/ext4/readpage.c | 3 +--
10  1 file changed, 1 insertion(+), 2 deletions(-)
12 ignore my previous patch
14 diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c
15 index 5dc5e95..2cc2760 100644
16 --- a/fs/ext4/readpage.c
17 +++ b/fs/ext4/readpage.c
18 @@ -135,7 +135,6 @@ int ext4_mpage_readpages(struct address_space *mapping,
19                          unsigned nr_pages)
20  {
21         struct bio *bio = NULL;
22 -       unsigned page_idx;
23         sector_t last_block_in_bio = 0;
25         struct inode *inode = mapping->host;
26 @@ -157,7 +156,7 @@ int ext4_mpage_readpages(struct address_space *mapping,
27         map.m_len = 0;
28         map.m_flags = 0;
30 -       for (page_idx = 0; nr_pages; page_idx++, nr_pages--) {
31 +       for (; nr_pages; nr_pages--) {
32                 int fully_mapped = 1;
33                 unsigned first_hole = blocks_per_page;
35 -- 
36 1.9.1