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>
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,
21 struct bio *bio = NULL;
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,
30 - for (page_idx = 0; nr_pages; page_idx++, nr_pages--) {
31 + for (; nr_pages; nr_pages--) {
33 unsigned first_hole = blocks_per_page;