Skip to content

Commit

Permalink
cifs: remove unused function cifs_oplock_break_wait
Browse files Browse the repository at this point in the history
Commit 7431620 ("sched: Remove proliferation of wait_on_bit() action
functions") has removed the call to cifs_oplock_break_wait, making this
function unused; remove it.

This fixes the following compilation warning:

  fs/cifs/misc.c:578:1: warning: ‘cifs_oplock_break_wait’ defined but not used [-Wunused-function]

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Steve French <sfrench@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Vincent Stehlé authored and Steve French committed Aug 11, 2014
1 parent c8d6637 commit e91259f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/cifs/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,6 @@ void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock)
cinode->oplock = 0;
}

static int
cifs_oplock_break_wait(void *unused)
{
schedule();
return signal_pending(current) ? -ERESTARTSYS : 0;
}

/*
* We wait for oplock breaks to be processed before we attempt to perform
* writes.
Expand Down

0 comments on commit e91259f

Please sign in to comment.