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
1dd747c0
Commit
1dd747c0
authored
May 27, 2002
by
Andrew Morton
Committed by
Linus Torvalds
May 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] enable direct-to-BIO readahead for ext3
Turn on multipage no-buffers reads for ext3.
parent
ab9e8941
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
fs/ext3/inode.c
fs/ext3/inode.c
+9
-1
No files found.
fs/ext3/inode.c
View file @
1dd747c0
...
...
@@ -33,6 +33,7 @@
#include <linux/quotaops.h>
#include <linux/string.h>
#include <linux/buffer_head.h>
#include <linux/mpage.h>
/*
* SEARCH_FROM_ZERO forces each block allocation to search from the start
...
...
@@ -1340,9 +1341,15 @@ static int ext3_writepage(struct page *page)
static
int
ext3_readpage
(
struct
file
*
file
,
struct
page
*
page
)
{
return
block_read_full_page
(
page
,
ext3_get_block
);
return
mpage_readpage
(
page
,
ext3_get_block
);
}
static
int
ext3_readpages
(
struct
address_space
*
mapping
,
struct
list_head
*
pages
,
unsigned
nr_pages
)
{
return
mpage_readpages
(
mapping
,
pages
,
nr_pages
,
ext3_get_block
);
}
static
int
ext3_flushpage
(
struct
page
*
page
,
unsigned
long
offset
)
{
...
...
@@ -1359,6 +1366,7 @@ static int ext3_releasepage(struct page *page, int wait)
struct
address_space_operations
ext3_aops
=
{
readpage:
ext3_readpage
,
/* BKL not held. Don't need */
readpages:
ext3_readpages
,
/* BKL not held. Don't need */
writepage:
ext3_writepage
,
/* BKL not held. We take it */
sync_page:
block_sync_page
,
prepare_write:
ext3_prepare_write
,
/* BKL not held. We take it */
...
...
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