aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-10-31 12:35:48 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-01-04 16:49:29 -0500
commit255c7cf810e4776ae8f1023332060459f30d8a2a (patch)
tree1b858a364f7de9a4e129080aa3fe37ae28dd0cd3 /fs/locks.c
parentc45821d263a8a5109d69a9e8942b8d65bcd5f31a (diff)
locks: minor setlease cleanup
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 5cb65062281..feaac634d0d 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1399,7 +1399,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
1399 for (before = &inode->i_flock; 1399 for (before = &inode->i_flock;
1400 ((fl = *before) != NULL) && IS_LEASE(fl); 1400 ((fl = *before) != NULL) && IS_LEASE(fl);
1401 before = &fl->fl_next) { 1401 before = &fl->fl_next) {
1402 if (fl->fl_file == lease->fl_file) 1402 if (fl->fl_file == filp)
1403 my_before = before; 1403 my_before = before;
1404 else if (fl->fl_type == (F_INPROGRESS | F_UNLCK)) 1404 else if (fl->fl_type == (F_INPROGRESS | F_UNLCK))
1405 /* 1405 /*