Lines Matching full:lease

110 		.procname	= "lease-break-time",
242 locks_dump_ctx_list(&ctx->flc_lease, "LEASE"); in locks_check_ctx_lists()
367 /* Free a lease which is not in use. */
573 /* default lease lock manager operations */
601 * desired lease.
603 * @arg: type of lease that we're trying to acquire
606 * conflict with the lease we're trying to set.
620 * Make sure that only read/write count is from lease requestor. in lease_open_conflict()
645 * Initialize a lease, use the default lock manager operations
661 /* Allocate a file_lock initialised to this type of lease */
1500 /* We already had a lease on this file; just change its type */
1552 struct file_lease *lease = file_lease(lc); in leases_conflict() local
1555 if (lease->fl_lmops->lm_breaker_owns_lease in leases_conflict()
1556 && lease->fl_lmops->lm_breaker_owns_lease(lease)) in leases_conflict()
1569 trace_leases_conflict(rc, lease, breaker); in leases_conflict()
1594 * some kind of lock (maybe a lease) on this file. Leases are broken on
1596 * lease break unless you specify LEASE_BREAK_NONBLOCK.
1693 * Wait for the next conflicting lease that has not been in __break_lease()
1713 * lease_get_mtime - update modified time of an inode with exclusive lease
1719 * exclusive lease, then they could be modifying it.
1743 * __fcntl_getlease - Enquire what lease is currently active
1745 * @flavor: type of lease flags to check
1748 * (if no lease break is pending):
1750 * %F_RDLCK to indicate a shared lease is held.
1752 * %F_WRLCK to indicate an exclusive lease is held.
1754 * %F_UNLCK to indicate no lease is held.
1756 * (if a lease break is pending):
1758 * %F_RDLCK to indicate an exclusive lease needs to be
1759 * changed to a shared lease (or removed).
1761 * %F_UNLCK to indicate the lease needs to be removed.
1810 struct file_lease *fl, *my_fl = NULL, *lease; in generic_add_lease() local
1817 lease = *flp; in generic_add_lease()
1818 trace_generic_add_lease(inode, lease); in generic_add_lease()
1843 error = lease->fl_lmops->lm_open_conflict(filp, arg); in generic_add_lease()
1849 * lease on this file, then we hold it on this filp in generic_add_lease()
1851 * And if we are trying to acquire an exclusive lease, in generic_add_lease()
1858 fl->c.flc_owner == lease->c.flc_owner) { in generic_add_lease()
1864 * No exclusive leases if someone else has a lease on in generic_add_lease()
1870 * Modifying our existing lease is OK, but no getting a in generic_add_lease()
1871 * new lease if someone else is opening for write: in generic_add_lease()
1878 lease = my_fl; in generic_add_lease()
1879 error = lease->fl_lmops->lm_change(lease, arg, &dispose); in generic_add_lease()
1889 locks_insert_lock_ctx(&lease->c, &ctx->flc_lease); in generic_add_lease()
1893 * open but before the lease was inserted. Check again for a in generic_add_lease()
1894 * conflicting open and cancel the lease if there is one. in generic_add_lease()
1900 error = lease->fl_lmops->lm_open_conflict(filp, arg); in generic_add_lease()
1902 locks_unlink_lock_ctx(&lease->c); in generic_add_lease()
1907 if (lease->fl_lmops->lm_setup) in generic_add_lease()
1908 lease->fl_lmops->lm_setup(lease, priv); in generic_add_lease()
1953 * generic_setlease - sets a lease on an open file
1955 * @arg: type of lease to obtain
1993 * a new lease with the lease_notifier_chain. This is used by (e.g.) nfsd
1995 * conflicting lease.
2006 setlease_notifier(int arg, struct file_lease *lease) in setlease_notifier() argument
2009 srcu_notifier_call_chain(&lease_notifier_chain, arg, lease); in setlease_notifier()
2026 kernel_setlease(struct file *filp, int arg, struct file_lease **lease, void **priv) in kernel_setlease() argument
2028 if (lease) in kernel_setlease()
2029 setlease_notifier(arg, *lease); in kernel_setlease()
2031 return filp->f_op->setlease(filp, arg, lease, priv); in kernel_setlease()
2037 * vfs_setlease - sets a lease on an open file
2039 * @arg: type of lease to obtain
2040 * @lease: file_lock to use when adding a lease
2041 * @priv: private info for lm_setup when adding a lease (may be
2044 * Call this to establish a lease on the file. The "lease" argument is not
2046 * an existing lease, the ``(*lease)->fl_lmops->lm_break`` operation must be
2054 vfs_setlease(struct file *filp, int arg, struct file_lease **lease, void **priv) in vfs_setlease() argument
2065 return kernel_setlease(filp, arg, lease, priv); in vfs_setlease()
2095 * fcntl_setlease - sets a lease on an open file
2098 * @arg: type of lease to obtain
2100 * Call this fcntl to establish a lease on the file.
2102 * receive a signal when the lease is broken.
2122 * receive a signal when the lease is broken.
2787 locks_check_ctx_file_list(filp, &ctx->flc_lease, "LEASE"); in locks_remove_file()
2876 struct file_lease *lease = file_lease(flc); in lock_get_status() local
2878 type = target_leasetype(lease); in lock_get_status()
2883 seq_puts(f, "LEASE "); in lock_get_status()
2885 if (lease_breaking(lease)) in lock_get_status()