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
be6e4d66
Commit
be6e4d66
authored
Nov 15, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rds: remove dead code
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
100803a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
net/rds/page.c
net/rds/page.c
+0
-29
net/rds/rds.h
net/rds/rds.h
+0
-7
No files found.
net/rds/page.c
View file @
be6e4d66
...
...
@@ -45,35 +45,6 @@ struct rds_page_remainder {
static
DEFINE_PER_CPU_SHARED_ALIGNED
(
struct
rds_page_remainder
,
rds_page_remainders
);
/*
* returns 0 on success or -errno on failure.
*
* We don't have to worry about flush_dcache_page() as this only works
* with private pages. If, say, we were to do directed receive to pinned
* user pages we'd have to worry more about cache coherence. (Though
* the flush_dcache_page() in get_user_pages() would probably be enough).
*/
int
rds_page_copy_user
(
struct
page
*
page
,
unsigned
long
offset
,
void
__user
*
ptr
,
unsigned
long
bytes
,
int
to_user
)
{
unsigned
long
ret
;
void
*
addr
;
addr
=
kmap
(
page
);
if
(
to_user
)
{
rds_stats_add
(
s_copy_to_user
,
bytes
);
ret
=
copy_to_user
(
ptr
,
addr
+
offset
,
bytes
);
}
else
{
rds_stats_add
(
s_copy_from_user
,
bytes
);
ret
=
copy_from_user
(
addr
+
offset
,
ptr
,
bytes
);
}
kunmap
(
page
);
return
ret
?
-
EFAULT
:
0
;
}
EXPORT_SYMBOL_GPL
(
rds_page_copy_user
);
/**
* rds_page_remainder_alloc - build up regions of a message.
*
...
...
net/rds/rds.h
View file @
be6e4d66
...
...
@@ -781,13 +781,6 @@ static inline int rds_message_verify_checksum(const struct rds_header *hdr)
/* page.c */
int
rds_page_remainder_alloc
(
struct
scatterlist
*
scat
,
unsigned
long
bytes
,
gfp_t
gfp
);
int
rds_page_copy_user
(
struct
page
*
page
,
unsigned
long
offset
,
void
__user
*
ptr
,
unsigned
long
bytes
,
int
to_user
);
#define rds_page_copy_to_user(page, offset, ptr, bytes) \
rds_page_copy_user(page, offset, ptr, bytes, 1)
#define rds_page_copy_from_user(page, offset, ptr, bytes) \
rds_page_copy_user(page, offset, ptr, bytes, 0)
void
rds_page_exit
(
void
);
/* recv.c */
...
...
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