diff options
-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 fcc50ab71cc..d4f1d89d9bc 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1253,11 +1253,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); unlock_flocks(); error = wait_event_interruptible_timeout(new_fl->fl_wait, |