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
920220c1
Commit
920220c1
authored
Feb 08, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocfs2: don't open-code kernel_recvmsg()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f730c848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
fs/ocfs2/cluster/tcp.c
fs/ocfs2/cluster/tcp.c
+3
-18
No files found.
fs/ocfs2/cluster/tcp.c
View file @
920220c1
...
@@ -916,24 +916,9 @@ static struct o2net_msg_handler *o2net_handler_get(u32 msg_type, u32 key)
...
@@ -916,24 +916,9 @@ static struct o2net_msg_handler *o2net_handler_get(u32 msg_type, u32 key)
static
int
o2net_recv_tcp_msg
(
struct
socket
*
sock
,
void
*
data
,
size_t
len
)
static
int
o2net_recv_tcp_msg
(
struct
socket
*
sock
,
void
*
data
,
size_t
len
)
{
{
int
ret
;
struct
kvec
vec
=
{
.
iov_len
=
len
,
.
iov_base
=
data
,
};
mm_segment_t
oldfs
;
struct
msghdr
msg
=
{
.
msg_flags
=
MSG_DONTWAIT
,
};
struct
kvec
vec
=
{
return
kernel_recvmsg
(
sock
,
&
msg
,
&
vec
,
1
,
len
,
msg
.
msg_flags
);
.
iov_len
=
len
,
.
iov_base
=
data
,
};
struct
msghdr
msg
=
{
.
msg_iovlen
=
1
,
.
msg_iov
=
(
struct
iovec
*
)
&
vec
,
.
msg_flags
=
MSG_DONTWAIT
,
};
oldfs
=
get_fs
();
set_fs
(
get_ds
());
ret
=
sock_recvmsg
(
sock
,
&
msg
,
len
,
msg
.
msg_flags
);
set_fs
(
oldfs
);
return
ret
;
}
}
static
int
o2net_send_tcp_msg
(
struct
socket
*
sock
,
struct
kvec
*
vec
,
static
int
o2net_send_tcp_msg
(
struct
socket
*
sock
,
struct
kvec
*
vec
,
...
...
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