aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/flock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/afs/flock.c b/fs/afs/flock.c
index 8f07f8d1bfa9..4f77f3caee97 100644
--- a/fs/afs/flock.c
+++ b/fs/afs/flock.c
@@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *file, struct file_lock *fl)
456 456
457 /* check local lock records first */ 457 /* check local lock records first */
458 ret = 0; 458 ret = 0;
459 if (posix_test_lock(file, fl) == 0) { 459 posix_test_lock(file, fl);
460 if (fl->fl_type == F_UNLCK) {
460 /* no local locks; consult the server */ 461 /* no local locks; consult the server */
461 ret = afs_vnode_fetch_status(vnode, NULL, key); 462 ret = afs_vnode_fetch_status(vnode, NULL, key);
462 if (ret < 0) 463 if (ret < 0)