Lines Matching refs:lease
1460 static bool leases_conflict(struct file_lock *lease, struct file_lock *breaker) in leases_conflict() argument
1464 if (lease->fl_lmops->lm_breaker_owns_lease in leases_conflict()
1465 && lease->fl_lmops->lm_breaker_owns_lease(lease)) in leases_conflict()
1467 if ((breaker->fl_flags & FL_LAYOUT) != (lease->fl_flags & FL_LAYOUT)) { in leases_conflict()
1471 if ((breaker->fl_flags & FL_DELEG) && (lease->fl_flags & FL_LEASE)) { in leases_conflict()
1476 rc = locks_conflict(breaker, lease); in leases_conflict()
1478 trace_leases_conflict(rc, lease, breaker); in leases_conflict()
1744 struct file_lock *fl, *my_fl = NULL, *lease; in generic_add_lease() local
1751 lease = *flp; in generic_add_lease()
1752 trace_generic_add_lease(inode, lease); in generic_add_lease()
1780 error = check_conflicting_open(filp, arg, lease->fl_flags); in generic_add_lease()
1795 fl->fl_owner == lease->fl_owner) { in generic_add_lease()
1815 lease = my_fl; in generic_add_lease()
1816 error = lease->fl_lmops->lm_change(lease, arg, &dispose); in generic_add_lease()
1826 locks_insert_lock_ctx(lease, &ctx->flc_lease); in generic_add_lease()
1837 error = check_conflicting_open(filp, arg, lease->fl_flags); in generic_add_lease()
1839 locks_unlink_lock_ctx(lease); in generic_add_lease()
1844 if (lease->fl_lmops->lm_setup) in generic_add_lease()
1845 lease->fl_lmops->lm_setup(lease, priv); in generic_add_lease()
1948 setlease_notifier(long arg, struct file_lock *lease) in setlease_notifier() argument
1951 srcu_notifier_call_chain(&lease_notifier_chain, arg, lease); in setlease_notifier()
1973 setlease_notifier(long arg, struct file_lock *lease) in setlease_notifier() argument
2008 vfs_setlease(struct file *filp, long arg, struct file_lock **lease, void **priv) in vfs_setlease() argument
2010 if (lease) in vfs_setlease()
2011 setlease_notifier(arg, *lease); in vfs_setlease()
2013 return filp->f_op->setlease(filp, arg, lease, priv); in vfs_setlease()
2015 return generic_setlease(filp, arg, lease, priv); in vfs_setlease()