diff options
author | J. Bruce Fields <bfields@redhat.com> | 2010-10-31 12:35:48 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-01-04 16:49:29 -0500 |
commit | 255c7cf810e4776ae8f1023332060459f30d8a2a (patch) | |
tree | 1b858a364f7de9a4e129080aa3fe37ae28dd0cd3 | |
parent | c45821d263a8a5109d69a9e8942b8d65bcd5f31a (diff) | |
download | op-kernel-dev-255c7cf810e4776ae8f1023332060459f30d8a2a.zip op-kernel-dev-255c7cf810e4776ae8f1023332060459f30d8a2a.tar.gz |
locks: minor setlease cleanup
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | fs/locks.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1399,7 +1399,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp) for (before = &inode->i_flock; ((fl = *before) != NULL) && IS_LEASE(fl); before = &fl->fl_next) { - if (fl->fl_file == lease->fl_file) + if (fl->fl_file == filp) my_before = before; else if (fl->fl_type == (F_INPROGRESS | F_UNLCK)) /* |