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
97b6a0d4
Commit
97b6a0d4
authored
Jan 24, 2004
by
Dean Roehrich
Committed by
Nathan Scott
Jan 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] In xfs_bulkstat, we need to do the readahead loop always.
SGI Modid: xfs-linux:xfs-kern:164517a
parent
c8609416
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/xfs/xfs_itable.c
fs/xfs/xfs_itable.c
+3
-3
No files found.
fs/xfs/xfs_itable.c
View file @
97b6a0d4
...
@@ -330,7 +330,7 @@ xfs_bulkstat(
...
@@ -330,7 +330,7 @@ xfs_bulkstat(
* inode returned; 0 means start of the allocation group.
* inode returned; 0 means start of the allocation group.
*/
*/
rval
=
0
;
rval
=
0
;
while
(
(
ubleft
/
statstruct_size
)
>
0
&&
agno
<
mp
->
m_sb
.
sb_agcount
)
{
while
(
ubleft
>=
statstruct_size
&&
agno
<
mp
->
m_sb
.
sb_agcount
)
{
bp
=
NULL
;
bp
=
NULL
;
down_read
(
&
mp
->
m_peraglock
);
down_read
(
&
mp
->
m_peraglock
);
error
=
xfs_ialloc_read_agi
(
mp
,
tp
,
agno
,
&
agbp
);
error
=
xfs_ialloc_read_agi
(
mp
,
tp
,
agno
,
&
agbp
);
...
@@ -415,7 +415,7 @@ xfs_bulkstat(
...
@@ -415,7 +415,7 @@ xfs_bulkstat(
* Loop through inode btree records in this ag,
* Loop through inode btree records in this ag,
* until we run out of inodes or space in the buffer.
* until we run out of inodes or space in the buffer.
*/
*/
while
(
irbp
<
irbufend
&&
icount
<
(
ubleft
/
statstruct_size
)
)
{
while
(
irbp
<
irbufend
&&
icount
<
ubcount
)
{
/*
/*
* Loop as long as we're unable to read the
* Loop as long as we're unable to read the
* inode btree.
* inode btree.
...
@@ -467,7 +467,7 @@ xfs_bulkstat(
...
@@ -467,7 +467,7 @@ xfs_bulkstat(
*/
*/
irbufend
=
irbp
;
irbufend
=
irbp
;
for
(
irbp
=
irbuf
;
for
(
irbp
=
irbuf
;
irbp
<
irbufend
&&
(
ubleft
/
statstruct_size
)
>
0
;
irbp
++
)
{
irbp
<
irbufend
&&
ubleft
>=
statstruct_size
;
irbp
++
)
{
/*
/*
* Read-ahead the next chunk's worth of inodes.
* Read-ahead the next chunk's worth of inodes.
*/
*/
...
...
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