Home
last modified time | relevance | path

Searched refs:lease (Results 1 – 14 of 14) sorted by relevance

/fs/ksmbd/
Doplock.c94 struct lease *lease; in alloc_lease() local
96 lease = kmalloc(sizeof(struct lease), GFP_KERNEL); in alloc_lease()
97 if (!lease) in alloc_lease()
100 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
101 lease->state = lctx->req_state; in alloc_lease()
102 lease->new_state = 0; in alloc_lease()
103 lease->flags = lctx->flags; in alloc_lease()
104 lease->duration = lctx->duration; in alloc_lease()
105 lease->is_dir = lctx->is_dir; in alloc_lease()
106 memcpy(lease->parent_lease_key, lctx->parent_lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
[all …]
Doplock.h49 struct lease { struct
76 struct lease *o_lease; argument
113 void create_lease_buf(u8 *rbuf, struct lease *lease);
DKconfig40 Secure negotiate, Pre-authentication integrity, oplock/lease,
Dsmb2pdu.c8112 static int check_lease_state(struct lease *lease, __le32 req_state) in check_lease_state() argument
8114 if ((lease->new_state == in check_lease_state()
8117 lease->new_state = req_state; in check_lease_state()
8121 if (lease->new_state == req_state) in check_lease_state()
8143 struct lease *lease; in smb21_lease_break_ack() local
8156 lease = opinfo->o_lease; in smb21_lease_break_ack()
8165 if (check_lease_state(lease, req->LeaseState)) { in smb21_lease_break_ack()
8169 req->LeaseState, lease->new_state); in smb21_lease_break_ack()
8182 if (lease->state & SMB2_LEASE_WRITE_CACHING_LE) in smb21_lease_break_ack()
8187 le32_to_cpu(lease->state), in smb21_lease_break_ack()
[all …]
/fs/nfs/
Dnfs4renewd.c61 long lease; in nfs4_renew_state() local
71 lease = clp->cl_lease_time; in nfs4_renew_state()
75 if (time_after(now, last + lease/3)) in nfs4_renew_state()
143 unsigned long lease) in nfs4_set_lease_period() argument
146 clp->cl_lease_time = lease; in nfs4_set_lease_period()
150 rpc_set_connect_timeout(clp->cl_rpcclient, lease, lease >> 1); in nfs4_set_lease_period()
Dnfs4file.c446 static int nfs4_setlease(struct file *file, long arg, struct file_lock **lease, in nfs4_setlease() argument
449 return nfs4_proc_setlease(file, arg, lease, priv); in nfs4_setlease()
Dnfs4_fs.h330 struct file_lock **lease, void **priv);
465 extern void nfs4_set_lease_period(struct nfs_client *clp, unsigned long lease);
Dnfs4proc.c7564 static int nfs4_add_lease(struct file *file, long arg, struct file_lock **lease, in nfs4_add_lease() argument
7574 ret = generic_setlease(file, arg, lease, priv); in nfs4_add_lease()
7582 int nfs4_proc_setlease(struct file *file, long arg, struct file_lock **lease, in nfs4_proc_setlease() argument
7588 return nfs4_add_lease(file, arg, lease, priv); in nfs4_proc_setlease()
/fs/
Dlocks.c1460 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()
[all …]
/fs/cifs/
Dsmb2misc.c473 __le32 lease = 0; in smb2_get_lease_state() local
476 lease |= SMB2_LEASE_WRITE_CACHING; in smb2_get_lease_state()
478 lease |= SMB2_LEASE_HANDLE_CACHING; in smb2_get_lease_state()
480 lease |= SMB2_LEASE_READ_CACHING; in smb2_get_lease_state()
481 return lease; in smb2_get_lease_state()
Dcifsfs.c1050 cifs_setlease(struct file *file, long arg, struct file_lock **lease, void **priv) in cifs_setlease() argument
1066 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
1077 return generic_setlease(file, arg, lease, priv); in cifs_setlease()
/fs/ceph/
Dinode.c1093 struct ceph_mds_reply_lease *lease, in __update_dentry_lease() argument
1099 unsigned mask = le16_to_cpu(lease->mask); in __update_dentry_lease()
1100 long unsigned duration = le32_to_cpu(lease->duration_ms); in __update_dentry_lease()
1134 di->lease_seq = le32_to_cpu(lease->seq); in __update_dentry_lease()
1143 struct ceph_mds_reply_lease *lease, in update_dentry_lease() argument
1149 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease()
1159 struct ceph_mds_reply_lease *lease, in update_dentry_lease_careful() argument
1193 __update_dentry_lease(dir, dentry, lease, session, in update_dentry_lease_careful()
1791 rde->lease, req->r_session, in ceph_readdir_prepopulate()
Dmds_client.c265 struct ceph_mds_reply_lease **lease, in parse_reply_info_lease() argument
282 ceph_decode_need(p, end, sizeof(**lease), bad); in parse_reply_info_lease()
283 *lease = *p; in parse_reply_info_lease()
284 *p += sizeof(**lease); in parse_reply_info_lease()
383 err = parse_reply_info_lease(p, end, &rde->lease, features); in parse_reply_info_readdir()
4477 struct ceph_mds_lease *lease; in ceph_mdsc_lease_send_msg() local
4479 int len = sizeof(*lease) + sizeof(u32) + NAME_MAX; in ceph_mdsc_lease_send_msg()
4487 lease = msg->front.iov_base; in ceph_mdsc_lease_send_msg()
4488 lease->action = action; in ceph_mdsc_lease_send_msg()
4489 lease->seq = cpu_to_le32(seq); in ceph_mdsc_lease_send_msg()
[all …]
Dmds_client.h92 struct ceph_mds_reply_lease *lease; member