]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/lockd/clntproc.c
Move locks API users to locks_lock_inode_wait()
[karo-tx-linux.git] / fs / lockd / clntproc.c
index acd3947163497b802544a632aa02512c37b88d9d..112952037933b79fa36dbea67579c576ee19be58 100644 (file)
@@ -474,18 +474,7 @@ static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *ho
 
 static int do_vfs_lock(struct file_lock *fl)
 {
-       int res = 0;
-       switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) {
-               case FL_POSIX:
-                       res = posix_lock_file_wait(fl->fl_file, fl);
-                       break;
-               case FL_FLOCK:
-                       res = flock_lock_file_wait(fl->fl_file, fl);
-                       break;
-               default:
-                       BUG();
-       }
-       return res;
+       return locks_lock_file_wait(fl->fl_file, fl);
 }
 
 /*