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
nexedi
linux
Commits
caa38fb0
Commit
caa38fb0
authored
Jul 23, 2006
by
Jens Axboe
Committed by
Jens Axboe
Sep 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ext3: make meta data reads use READ_META
Signed-off-by:
Jens Axboe
<
axboe@suse.de
>
parent
5404bc7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
fs/ext3/inode.c
fs/ext3/inode.c
+3
-2
fs/ext3/namei.c
fs/ext3/namei.c
+2
-1
No files found.
fs/ext3/inode.c
View file @
caa38fb0
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <linux/writeback.h>
#include <linux/writeback.h>
#include <linux/mpage.h>
#include <linux/mpage.h>
#include <linux/uio.h>
#include <linux/uio.h>
#include <linux/bio.h>
#include "xattr.h"
#include "xattr.h"
#include "acl.h"
#include "acl.h"
...
@@ -1073,7 +1074,7 @@ struct buffer_head *ext3_bread(handle_t *handle, struct inode *inode,
...
@@ -1073,7 +1074,7 @@ struct buffer_head *ext3_bread(handle_t *handle, struct inode *inode,
return
bh
;
return
bh
;
if
(
buffer_uptodate
(
bh
))
if
(
buffer_uptodate
(
bh
))
return
bh
;
return
bh
;
ll_rw_block
(
READ
,
1
,
&
bh
);
ll_rw_block
(
READ
_META
,
1
,
&
bh
);
wait_on_buffer
(
bh
);
wait_on_buffer
(
bh
);
if
(
buffer_uptodate
(
bh
))
if
(
buffer_uptodate
(
bh
))
return
bh
;
return
bh
;
...
@@ -2540,7 +2541,7 @@ static int __ext3_get_inode_loc(struct inode *inode,
...
@@ -2540,7 +2541,7 @@ static int __ext3_get_inode_loc(struct inode *inode,
*/
*/
get_bh
(
bh
);
get_bh
(
bh
);
bh
->
b_end_io
=
end_buffer_read_sync
;
bh
->
b_end_io
=
end_buffer_read_sync
;
submit_bh
(
READ
,
bh
);
submit_bh
(
READ
_META
,
bh
);
wait_on_buffer
(
bh
);
wait_on_buffer
(
bh
);
if
(
!
buffer_uptodate
(
bh
))
{
if
(
!
buffer_uptodate
(
bh
))
{
ext3_error
(
inode
->
i_sb
,
"ext3_get_inode_loc"
,
ext3_error
(
inode
->
i_sb
,
"ext3_get_inode_loc"
,
...
...
fs/ext3/namei.c
View file @
caa38fb0
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include <linux/string.h>
#include <linux/string.h>
#include <linux/quotaops.h>
#include <linux/quotaops.h>
#include <linux/buffer_head.h>
#include <linux/buffer_head.h>
#include <linux/bio.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include "namei.h"
#include "namei.h"
...
@@ -870,7 +871,7 @@ static struct buffer_head * ext3_find_entry (struct dentry *dentry,
...
@@ -870,7 +871,7 @@ static struct buffer_head * ext3_find_entry (struct dentry *dentry,
bh
=
ext3_getblk
(
NULL
,
dir
,
b
++
,
0
,
&
err
);
bh
=
ext3_getblk
(
NULL
,
dir
,
b
++
,
0
,
&
err
);
bh_use
[
ra_max
]
=
bh
;
bh_use
[
ra_max
]
=
bh
;
if
(
bh
)
if
(
bh
)
ll_rw_block
(
READ
,
1
,
&
bh
);
ll_rw_block
(
READ
_META
,
1
,
&
bh
);
}
}
}
}
if
((
bh
=
bh_use
[
ra_ptr
++
])
==
NULL
)
if
((
bh
=
bh_use
[
ra_ptr
++
])
==
NULL
)
...
...
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