summaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2016-09-17 18:17:32 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2016-09-22 13:56:04 -0400
commit75575ddf29cbbf8e3c96fb02ae80a33f22054aad (patch)
tree7a176837c9913f62f950c12a7e2b40a56afef249 /fs/nfs/file.c
parentb60475c9401bf89a2b14918fca0a220a15867ace (diff)
nfs: eliminate pointless and confusing do_vfs_lock wrappers
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 580d1c588228..3f1c623eee39 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -710,11 +710,6 @@ out_noconflict:
710 goto out; 710 goto out;
711} 711}
712 712
713static int do_vfs_lock(struct file *file, struct file_lock *fl)
714{
715 return locks_lock_file_wait(file, fl);
716}
717
718static int 713static int
719do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) 714do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
720{ 715{
@@ -747,7 +742,7 @@ do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
747 if (!is_local) 742 if (!is_local)
748 status = NFS_PROTO(inode)->lock(filp, cmd, fl); 743 status = NFS_PROTO(inode)->lock(filp, cmd, fl);
749 else 744 else
750 status = do_vfs_lock(filp, fl); 745 status = locks_lock_file_wait(filp, fl);
751 return status; 746 return status;
752} 747}
753 748
@@ -772,7 +767,7 @@ do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
772 if (!is_local) 767 if (!is_local)
773 status = NFS_PROTO(inode)->lock(filp, cmd, fl); 768 status = NFS_PROTO(inode)->lock(filp, cmd, fl);
774 else 769 else
775 status = do_vfs_lock(filp, fl); 770 status = locks_lock_file_wait(filp, fl);
776 if (status < 0) 771 if (status < 0)
777 goto out; 772 goto out;
778 773