Skip to content

Commit

Permalink
locks: fix flock_lock_file() comment
Browse files Browse the repository at this point in the history
This comment wasn't updated when lease support was added, and it makes
essentially the same mistake that the code made before a recent bugfix.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
J. Bruce Fields committed Oct 9, 2007
1 parent 84d535a commit 02888f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,7 @@ static int posix_locks_deadlock(struct file_lock *caller_fl,
}

/* Try to create a FLOCK lock on filp. We always insert new FLOCK locks
* at the head of the list, but that's secret knowledge known only to
* flock_lock_file and posix_lock_file.
* after any leases, but before any posix locks.
*
* Note that if called with an FL_EXISTS argument, the caller may determine
* whether or not a lock was successfully freed by testing the return
Expand Down

0 comments on commit 02888f4

Please sign in to comment.