aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 08:12:50 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 08:12:50 -0700
commit74efa045f4e2fdcc9d6384004c5b1bba0cc1fd3c (patch)
treedd49456483356bb18200968bcefddc9ce78cae44 /fs/afs
parentMerge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394 into next (diff)
parentlocks: add some tracepoints in the lease handling code (diff)
downloadlinux-dev-74efa045f4e2fdcc9d6384004c5b1bba0cc1fd3c.tar.xz
linux-dev-74efa045f4e2fdcc9d6384004c5b1bba0cc1fd3c.zip
Merge tag 'locks-v3.16' of git://git.samba.org/jlayton/linux into next
Pull file locking changes from Jeff Layton: "Pretty quiet on the file-locking related front this cycle. Just some small cleanups and the addition of some tracepoints in the lease handling code" * tag 'locks-v3.16' of git://git.samba.org/jlayton/linux: locks: add some tracepoints in the lease handling code fs/locks.c: replace seq_printf by seq_puts locks: ensure that fl_owner is always initialized properly in flock and lease codepaths
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/flock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/afs/flock.c b/fs/afs/flock.c
index a8cf2cff836c..4baf1d2b39e4 100644
--- a/fs/afs/flock.c
+++ b/fs/afs/flock.c
@@ -555,10 +555,6 @@ int afs_flock(struct file *file, int cmd, struct file_lock *fl)
return -ENOLCK;
/* we're simulating flock() locks using posix locks on the server */
- fl->fl_owner = (fl_owner_t) file;
- fl->fl_start = 0;
- fl->fl_end = OFFSET_MAX;
-
if (fl->fl_type == F_UNLCK)
return afs_do_unlk(file, fl);
return afs_do_setlk(file, fl);