diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/locks.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/locks.c b/fs/locks.c index b27a3005d78d..ad95fbd20f8a 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1359,11 +1359,10 @@ int __break_lease(struct inode *inode, unsigned int mode) restart: break_time = flock->fl_break_time; - if (break_time != 0) { + if (break_time != 0) break_time -= jiffies; - if (break_time == 0) - break_time++; - } + if (break_time == 0) + break_time++; locks_insert_block(flock, new_fl); spin_unlock(&inode->i_lock); error = wait_event_interruptible_timeout(new_fl->fl_wait, |