Skip to content

Commit

Permalink
leases: minor break_lease() comment clarification
Browse files Browse the repository at this point in the history
clarify that break_lease() checks for presence of any lock, not just leases.

Signed-off-by: David M. Richter <richterd@citi.umich.edu>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
  • Loading branch information
david m. richter authored and J. Bruce Fields committed Jul 18, 2007
1 parent 8b4a408 commit 87250dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,9 +1169,9 @@ static void time_out_leases(struct inode *inode)
* @inode: the inode of the file to return
* @mode: the open mode (read or write)
*
* break_lease (inlined for speed) has checked there already
* is a lease on this file. Leases are broken on a call to open()
* or truncate(). This function can sleep unless you
* break_lease (inlined for speed) has checked there already is at least
* some kind of lock (maybe a lease) on this file. Leases are broken on
* a call to open() or truncate(). This function can sleep unless you
* specified %O_NONBLOCK to your open().
*/
int __break_lease(struct inode *inode, unsigned int mode)
Expand Down

0 comments on commit 87250dd

Please sign in to comment.