Lines Matching refs:deny
596 static __be32 nfs4_file_check_deny(struct nfs4_file *fp, u32 deny) in nfs4_file_check_deny() argument
599 if (deny) { in nfs4_file_check_deny()
601 if (deny & ~NFS4_SHARE_DENY_BOTH) in nfs4_file_check_deny()
604 if ((deny & NFS4_SHARE_DENY_READ) && in nfs4_file_check_deny()
608 if ((deny & NFS4_SHARE_DENY_WRITE) && in nfs4_file_check_deny()
1232 set_deny(u32 deny, struct nfs4_ol_stateid *stp) in set_deny() argument
1234 unsigned char mask = 1 << deny; in set_deny()
1236 WARN_ON_ONCE(deny > NFS4_SHARE_DENY_BOTH); in set_deny()
1242 clear_deny(u32 deny, struct nfs4_ol_stateid *stp) in clear_deny() argument
1244 unsigned char mask = 1 << deny; in clear_deny()
1246 WARN_ON_ONCE(deny > NFS4_SHARE_DENY_BOTH); in clear_deny()
1252 test_deny(u32 deny, struct nfs4_ol_stateid *stp) in test_deny() argument
1254 unsigned char mask = 1 << deny; in test_deny()
1290 reset_union_bmap_deny(u32 deny, struct nfs4_ol_stateid *stp) in reset_union_bmap_deny() argument
1296 if ((i & deny) != i) { in reset_union_bmap_deny()
2469 unsigned int access, deny; in nfs4_show_open() local
2487 deny = bmap_to_share_mode(ols->st_deny_bmap); in nfs4_show_open()
2493 deny & NFS4_SHARE_ACCESS_READ ? "r" : "-", in nfs4_show_open()
2494 deny & NFS4_SHARE_ACCESS_WRITE ? "w" : "-"); in nfs4_show_open()
6413 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied() argument
6419 xdr_netobj_dup(&deny->ld_owner, &lo->lo_owner.so_owner, in nfs4_set_lock_denied()
6421 if (!deny->ld_owner.data) in nfs4_set_lock_denied()
6424 deny->ld_clientid = lo->lo_owner.so_client->cl_clientid; in nfs4_set_lock_denied()
6427 deny->ld_owner.len = 0; in nfs4_set_lock_denied()
6428 deny->ld_owner.data = NULL; in nfs4_set_lock_denied()
6429 deny->ld_clientid.cl_boot = 0; in nfs4_set_lock_denied()
6430 deny->ld_clientid.cl_id = 0; in nfs4_set_lock_denied()
6432 deny->ld_start = fl->fl_start; in nfs4_set_lock_denied()
6433 deny->ld_length = NFS4_MAX_UINT64; in nfs4_set_lock_denied()
6435 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied()
6436 deny->ld_type = NFS4_READ_LT; in nfs4_set_lock_denied()
6438 deny->ld_type = NFS4_WRITE_LT; in nfs4_set_lock_denied()