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
93bbf583
Commit
93bbf583
authored
Jan 02, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md: more open-coded offset_in_page()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
756d097b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/md/bcache/util.c
drivers/md/bcache/util.c
+1
-1
drivers/md/dm-io.c
drivers/md/dm-io.c
+2
-2
No files found.
drivers/md/bcache/util.c
View file @
93bbf583
...
...
@@ -230,7 +230,7 @@ void bch_bio_map(struct bio *bio, void *base)
BUG_ON
(
!
bio
->
bi_iter
.
bi_size
);
BUG_ON
(
bio
->
bi_vcnt
);
bv
->
bv_offset
=
base
?
((
unsigned
long
)
base
)
%
PAGE_SIZE
:
0
;
bv
->
bv_offset
=
base
?
offset_in_page
(
base
)
:
0
;
goto
start
;
for
(;
size
;
bio
->
bi_vcnt
++
,
bv
++
)
{
...
...
drivers/md/dm-io.c
View file @
93bbf583
...
...
@@ -246,7 +246,7 @@ static void vm_dp_init(struct dpages *dp, void *data)
{
dp
->
get_page
=
vm_get_page
;
dp
->
next_page
=
vm_next_page
;
dp
->
context_u
=
((
unsigned
long
)
data
)
&
(
PAGE_SIZE
-
1
);
dp
->
context_u
=
offset_in_page
(
data
);
dp
->
context_ptr
=
data
;
}
...
...
@@ -271,7 +271,7 @@ static void km_dp_init(struct dpages *dp, void *data)
{
dp
->
get_page
=
km_get_page
;
dp
->
next_page
=
km_next_page
;
dp
->
context_u
=
((
unsigned
long
)
data
)
&
(
PAGE_SIZE
-
1
);
dp
->
context_u
=
offset_in_page
(
data
);
dp
->
context_ptr
=
data
;
}
...
...
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