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
222e4ade
Commit
222e4ade
authored
Jan 02, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
... and a couple in net/9p
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
93bbf583
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/9p/trans_virtio.c
net/9p/trans_virtio.c
+2
-2
No files found.
net/9p/trans_virtio.c
View file @
222e4ade
...
...
@@ -105,7 +105,7 @@ static struct list_head virtio_chan_list;
/* How many bytes left in this page. */
static
unsigned
int
rest_of_page
(
void
*
data
)
{
return
PAGE_SIZE
-
((
unsigned
long
)
data
%
PAGE_SIZE
);
return
PAGE_SIZE
-
offset_in_page
(
data
);
}
/**
...
...
@@ -365,7 +365,7 @@ static int p9_get_mapped_pages(struct virtio_chan *chan,
return
-
ENOMEM
;
*
need_drop
=
0
;
p
-=
(
*
offs
=
(
unsigned
long
)
p
%
PAGE_SIZE
);
p
-=
(
*
offs
=
offset_in_page
(
p
)
);
for
(
index
=
0
;
index
<
nr_pages
;
index
++
)
{
if
(
is_vmalloc_addr
(
p
))
(
*
pages
)[
index
]
=
vmalloc_to_page
(
p
);
...
...
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