Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
9b61764b
Commit
9b61764b
authored
Oct 22, 2007
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SG] Update block layer to use sg helpers
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
82f66fbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
block/ll_rw_blk.c
block/ll_rw_blk.c
+6
-2
No files found.
block/ll_rw_blk.c
View file @
9b61764b
...
@@ -1354,8 +1354,9 @@ new_segment:
...
@@ -1354,8 +1354,9 @@ new_segment:
else
else
sg
=
sg_next
(
sg
);
sg
=
sg_next
(
sg
);
memset
(
sg
,
0
,
sizeof
(
*
sg
));
sg_dma_len
(
sg
)
=
0
;
sg
->
page
=
bvec
->
bv_page
;
sg_dma_address
(
sg
)
=
0
;
sg_set_page
(
sg
,
bvec
->
bv_page
);
sg
->
length
=
nbytes
;
sg
->
length
=
nbytes
;
sg
->
offset
=
bvec
->
bv_offset
;
sg
->
offset
=
bvec
->
bv_offset
;
nsegs
++
;
nsegs
++
;
...
@@ -1363,6 +1364,9 @@ new_segment:
...
@@ -1363,6 +1364,9 @@ new_segment:
bvprv
=
bvec
;
bvprv
=
bvec
;
}
/* segments in rq */
}
/* segments in rq */
if
(
sg
)
__sg_mark_end
(
sg
);
return
nsegs
;
return
nsegs
;
}
}
...
...
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