aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/svclock.c6
-rw-r--r--fs/lockd/svcsubs.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
index 97b0160ef10f..3b0e7a4b817b 100644
--- a/fs/lockd/svclock.c
+++ b/fs/lockd/svclock.c
@@ -363,7 +363,7 @@ again:
363 } else 363 } else
364 lock = &block->b_call->a_args.lock; 364 lock = &block->b_call->a_args.lock;
365 365
366 error = posix_lock_file(file->f_file, &lock->fl); 366 error = posix_lock_file(file->f_file, &lock->fl, NULL);
367 lock->fl.fl_flags &= ~FL_SLEEP; 367 lock->fl.fl_flags &= ~FL_SLEEP;
368 368
369 dprintk("lockd: posix_lock_file returned %d\n", error); 369 dprintk("lockd: posix_lock_file returned %d\n", error);
@@ -467,7 +467,7 @@ nlmsvc_unlock(struct nlm_file *file, struct nlm_lock *lock)
467 nlmsvc_cancel_blocked(file, lock); 467 nlmsvc_cancel_blocked(file, lock);
468 468
469 lock->fl.fl_type = F_UNLCK; 469 lock->fl.fl_type = F_UNLCK;
470 error = posix_lock_file(file->f_file, &lock->fl); 470 error = posix_lock_file(file->f_file, &lock->fl, NULL);
471 471
472 return (error < 0)? nlm_lck_denied_nolocks : nlm_granted; 472 return (error < 0)? nlm_lck_denied_nolocks : nlm_granted;
473} 473}
@@ -569,7 +569,7 @@ nlmsvc_grant_blocked(struct nlm_block *block)
569 569
570 /* Try the lock operation again */ 570 /* Try the lock operation again */
571 lock->fl.fl_flags |= FL_SLEEP; 571 lock->fl.fl_flags |= FL_SLEEP;
572 error = posix_lock_file(file->f_file, &lock->fl); 572 error = posix_lock_file(file->f_file, &lock->fl, NULL);
573 lock->fl.fl_flags &= ~FL_SLEEP; 573 lock->fl.fl_flags &= ~FL_SLEEP;
574 574
575 switch (error) { 575 switch (error) {
diff --git a/fs/lockd/svcsubs.c b/fs/lockd/svcsubs.c
index c0df00c74ce3..50957089be1f 100644
--- a/fs/lockd/svcsubs.c
+++ b/fs/lockd/svcsubs.c
@@ -182,7 +182,7 @@ again:
182 lock.fl_type = F_UNLCK; 182 lock.fl_type = F_UNLCK;
183 lock.fl_start = 0; 183 lock.fl_start = 0;
184 lock.fl_end = OFFSET_MAX; 184 lock.fl_end = OFFSET_MAX;
185 if (posix_lock_file(file->f_file, &lock) < 0) { 185 if (posix_lock_file(file->f_file, &lock, NULL) < 0) {
186 printk("lockd: unlock failure in %s:%d\n", 186 printk("lockd: unlock failure in %s:%d\n",
187 __FILE__, __LINE__); 187 __FILE__, __LINE__);
188 return 1; 188 return 1;