mm-rename-readahead-loop-variable-to-i.patch removed from -mm tree
The patch titled
Subject: mm: rename readahead loop variable to 'i'
has been removed from the -mm tree. Its filename was
mm-rename-readahead-loop-variable-to-i.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: mm: rename readahead loop variable to 'i'
Change the type of page_idx to unsigned long, and rename it -- it's just a loop counter, not a page index.
Suggested-by John Hubbard <[email protected]>
Signed-off-by Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by Dave Chinner <[email protected]>
Reviewed-by William Kucharski <[email protected]>
Reviewed-by Johannes Thumshirn <[email protected]>
Cc Chao Yu <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Cong Wang <[email protected]>
Cc Darrick J. Wong <[email protected]>
Cc Eric Biggers <[email protected]>
Cc Gao Xiang <[email protected]>
Cc Jaegeuk Kim <[email protected]>
Cc Joseph Qi <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Miklos Szeredi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/readahead.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
mm/readahead.c renamed from mm/readahead.c~mm-rename-readahead-loop-variable-to-i +4 -4
@@ -163,13 +163,13 @@ void __do_page_cache_readahead(struct adstruct page *page;unsigned long end_index;/* The last page we want to read */ LIST_HEAD (page_pool); -int page_idx;loff_t isize =i_size_read (inode);gfp_t gfp_mask =readahead_gfp_mask (mapping);struct readahead_control rac = { .mapping = mapping, .file = filp, }; +unsigned long i;if (isize ==0 )return ;
@@ -179,8 +179,8 @@ void __do_page_cache_readahead(struct ad/* * Preallocate as many pages as we will need. */ -for (page_idx =0 ; page_idx < nr_to_read; page_idx++) { -pgoff_t page_offset = index + page_idx; +for (i =0 ; i < nr_to_read; i++) { +pgoff_t page_offset = index + i;if (page_offset > end_index)break ;
@@ -201,7 +201,7 @@ void __do_page_cache_readahead(struct adbreak ; page->index = page_offset;list_add (&page->lru, &page_pool); -if (page_idx == nr_to_read - lookahead_size) +if (i == nr_to_read - lookahead_size)SetPageReadahead (page); rac._nr_pages++; }
_
Patches currently in -mm which might be from [email protected] are
mm-simplify-calling-a-compound-page-destructor.patch ipc-convert-ipcs_idr-to-xarray.patch ipc-convert-ipcs_idr-to-xarray-update.patch