Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c6924d4
Commit
4c6924d4
authored
Jun 11, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Jun 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix smbfs oops
Silly oversight - read_pages needs to pass the file * down to ->readpage().
parent
711daf00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mm/readahead.c
mm/readahead.c
+3
-3
No files found.
mm/readahead.c
View file @
4c6924d4
...
...
@@ -32,7 +32,7 @@ static inline unsigned long get_min_readahead(struct file *file)
}
static
int
read_pages
(
struct
address_space
*
mapping
,
read_pages
(
struct
file
*
file
,
struct
address_space
*
mapping
,
struct
list_head
*
pages
,
unsigned
nr_pages
)
{
unsigned
page_idx
;
...
...
@@ -44,7 +44,7 @@ read_pages(struct address_space *mapping,
struct
page
*
page
=
list_entry
(
pages
->
prev
,
struct
page
,
list
);
list_del
(
&
page
->
list
);
if
(
!
add_to_page_cache_unique
(
page
,
mapping
,
page
->
index
))
mapping
->
a_ops
->
readpage
(
NULL
,
page
);
mapping
->
a_ops
->
readpage
(
file
,
page
);
page_cache_release
(
page
);
}
return
0
;
...
...
@@ -167,7 +167,7 @@ void do_page_cache_readahead(struct file *file,
* uptodate then the caller will launch readpage again, and
* will then handle the error.
*/
read_pages
(
mapping
,
&
page_pool
,
nr_to_really_read
);
read_pages
(
file
,
mapping
,
&
page_pool
,
nr_to_really_read
);
blk_run_queues
();
BUG_ON
(
!
list_empty
(
&
page_pool
));
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment