locks: minor setlease cleanup
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
c45821d263
commit
255c7cf810
1 changed files with 1 additions and 1 deletions
|
@ -1399,7 +1399,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
|
||||||
for (before = &inode->i_flock;
|
for (before = &inode->i_flock;
|
||||||
((fl = *before) != NULL) && IS_LEASE(fl);
|
((fl = *before) != NULL) && IS_LEASE(fl);
|
||||||
before = &fl->fl_next) {
|
before = &fl->fl_next) {
|
||||||
if (fl->fl_file == lease->fl_file)
|
if (fl->fl_file == filp)
|
||||||
my_before = before;
|
my_before = before;
|
||||||
else if (fl->fl_type == (F_INPROGRESS | F_UNLCK))
|
else if (fl->fl_type == (F_INPROGRESS | F_UNLCK))
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue