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
a9bc2790
Commit
a9bc2790
authored
Feb 03, 2003
by
Stephen Lord
Committed by
Linus Torvalds
Feb 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] fix initialization of bio in end case where we are dealing with sub page
sized requests. SGI Modid: 2.5.x-xfs:slinx:138201a
parent
168dba96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
fs/xfs/pagebuf/page_buf.c
fs/xfs/pagebuf/page_buf.c
+2
-10
No files found.
fs/xfs/pagebuf/page_buf.c
View file @
a9bc2790
...
...
@@ -1299,7 +1299,6 @@ pagebuf_iorequest( /* start real I/O */
int
status
=
0
;
int
i
,
map_i
,
total_nr_pages
,
nr_pages
;
struct
bio
*
bio
;
struct
bio_vec
*
bvec
;
int
offset
=
pb
->
pb_offset
;
int
size
=
pb
->
pb_count_desired
;
sector_t
sector
=
pb
->
pb_bn
;
...
...
@@ -1335,13 +1334,8 @@ pagebuf_iorequest( /* start real I/O */
bio
->
bi_sector
=
sector
-
(
offset
>>
BBSHIFT
);
bio
->
bi_end_io
=
bio_end_io_pagebuf
;
bio
->
bi_private
=
pb
;
bio
->
bi_vcnt
++
;
bio
->
bi_size
=
PAGE_CACHE_SIZE
;
bvec
=
bio
->
bi_io_vec
;
bvec
->
bv_page
=
pb
->
pb_pages
[
0
];
bvec
->
bv_len
=
PAGE_CACHE_SIZE
;
bvec
->
bv_offset
=
0
;
bio_add_page
(
bio
,
pb
->
pb_pages
[
0
],
PAGE_CACHE_SIZE
,
0
);
atomic_inc
(
&
pb
->
pb_io_remaining
);
submit_bio
(
READ
,
bio
);
...
...
@@ -1389,9 +1383,7 @@ pagebuf_iorequest( /* start real I/O */
bio
->
bi_end_io
=
bio_end_io_pagebuf
;
bio
->
bi_private
=
pb
;
bvec
=
bio
->
bi_io_vec
;
for
(;
size
&&
nr_pages
;
nr_pages
--
,
bvec
++
,
map_i
++
)
{
for
(;
size
&&
nr_pages
;
nr_pages
--
,
map_i
++
)
{
int
nbytes
=
PAGE_CACHE_SIZE
-
offset
;
if
(
nbytes
>
size
)
...
...
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