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
d0642c69
Commit
d0642c69
authored
Dec 18, 2003
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Fix a possible bio-leak on I/O submission, in a case where no I/O was required.
SGI Modid: 2.5.x-xfs:slinx:163119a
parent
364c4073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
fs/xfs/pagebuf/page_buf.c
fs/xfs/pagebuf/page_buf.c
+2
-7
No files found.
fs/xfs/pagebuf/page_buf.c
View file @
d0642c69
...
...
@@ -1395,7 +1395,6 @@ _pagebuf_ioapply(
break
;
offset
=
0
;
sector
+=
nbytes
>>
BBSHIFT
;
size
-=
nbytes
;
total_nr_pages
--
;
...
...
@@ -1403,15 +1402,11 @@ _pagebuf_ioapply(
submit_io:
if
(
likely
(
bio
->
bi_size
))
{
if
(
pb
->
pb_flags
&
PBF_READ
)
{
submit_bio
(
READ
,
bio
);
}
else
{
submit_bio
(
WRITE
,
bio
);
}
submit_bio
((
pb
->
pb_flags
&
PBF_READ
)
?
READ
:
WRITE
,
bio
);
if
(
size
)
goto
next_chunk
;
}
else
{
bio_put
(
bio
);
pagebuf_ioerror
(
pb
,
EIO
);
}
...
...
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