]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfs/file.c
Merge branch 'jdelvare-hwmon/master'
[karo-tx-linux.git] / fs / nfs / file.c
index c0f9b1ed12b9eb281909926f2befacd13db1a026..37f639d50af580396bf016a2fb40c2b427c7b1dd 100644 (file)
@@ -738,18 +738,7 @@ out_noconflict:
 
 static int do_vfs_lock(struct file *file, struct file_lock *fl)
 {
-       int res = 0;
-       switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) {
-               case FL_POSIX:
-                       res = posix_lock_file_wait(file, fl);
-                       break;
-               case FL_FLOCK:
-                       res = flock_lock_file_wait(file, fl);
-                       break;
-               default:
-                       BUG();
-       }
-       return res;
+       return locks_lock_file_wait(file, fl);
 }
 
 static int