From: david m. richter Date: Wed, 9 May 2007 20:10:27 +0000 (-0400) Subject: leases: minor break_lease() comment clarification X-Git-Tag: v2.6.23-rc1~482^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=87250dd26a34c65ae31d08837174222889007641;p=linux-2.6-omap-h63xx.git leases: minor break_lease() comment clarification clarify that break_lease() checks for presence of any lock, not just leases. Signed-off-by: David M. Richter Signed-off-by: "J. Bruce Fields" --- diff --git a/fs/locks.c b/fs/locks.c index 431a8b871fc..924e4a7fb1d 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -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)