Skip to content

Commit

Permalink
[DLM] fs/dlm/lowcomms-tcp.c: remove 2 functions
Browse files Browse the repository at this point in the history
Remove the following unused functions:

- lowcomms_send_message()
- lowcomms_max_buffer_size()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Adrian Bunk authored and Steven Whitehouse committed Feb 5, 2007
1 parent 075529b commit 927255f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions fs/dlm/lowcomms-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,22 +880,6 @@ int dlm_lowcomms_close(int nodeid)
return -1;
}

/* API send message call, may queue the request */
/* N.B. This is the old interface - use the new one for new calls */
int lowcomms_send_message(int nodeid, char *buf, int len, gfp_t allocation)
{
struct writequeue_entry *e;
char *b;

e = dlm_lowcomms_get_buffer(nodeid, len, allocation, &b);
if (e) {
memcpy(b, buf, len);
dlm_lowcomms_commit_buffer(e);
return 0;
}
return -ENOBUFS;
}

/* Look for activity on active sockets */
static void process_sockets(void)
{
Expand Down Expand Up @@ -1087,14 +1071,6 @@ static int daemons_start(void)
return 0;
}

/*
* Return the largest buffer size we can cope with.
*/
int lowcomms_max_buffer_size(void)
{
return PAGE_CACHE_SIZE;
}

void dlm_lowcomms_stop(void)
{
int i;
Expand Down

0 comments on commit 927255f

Please sign in to comment.