• Home
  • Raw
  • Download

Lines Matching refs:access

569 __nfs4_file_get_access(struct nfs4_file *fp, u32 access)  in __nfs4_file_get_access()  argument
573 if (access & NFS4_SHARE_ACCESS_WRITE) in __nfs4_file_get_access()
575 if (access & NFS4_SHARE_ACCESS_READ) in __nfs4_file_get_access()
580 nfs4_file_get_access(struct nfs4_file *fp, u32 access) in nfs4_file_get_access() argument
585 if (access & ~NFS4_SHARE_ACCESS_BOTH) in nfs4_file_get_access()
589 if ((access & fp->fi_share_deny) != 0) in nfs4_file_get_access()
592 __nfs4_file_get_access(fp, access); in nfs4_file_get_access()
634 static void nfs4_file_put_access(struct nfs4_file *fp, u32 access) in nfs4_file_put_access() argument
636 WARN_ON_ONCE(access & ~NFS4_SHARE_ACCESS_BOTH); in nfs4_file_put_access()
638 if (access & NFS4_SHARE_ACCESS_WRITE) in nfs4_file_put_access()
640 if (access & NFS4_SHARE_ACCESS_READ) in nfs4_file_put_access()
1192 unsigned int access = 0; in bmap_to_share_mode() local
1196 access |= i; in bmap_to_share_mode()
1198 return access; in bmap_to_share_mode()
1203 set_access(u32 access, struct nfs4_ol_stateid *stp) in set_access() argument
1205 unsigned char mask = 1 << access; in set_access()
1207 WARN_ON_ONCE(access > NFS4_SHARE_ACCESS_BOTH); in set_access()
1213 clear_access(u32 access, struct nfs4_ol_stateid *stp) in clear_access() argument
1215 unsigned char mask = 1 << access; in clear_access()
1217 WARN_ON_ONCE(access > NFS4_SHARE_ACCESS_BOTH); in clear_access()
1223 test_access(u32 access, struct nfs4_ol_stateid *stp) in test_access() argument
1225 unsigned char mask = 1 << access; in test_access()
1259 static int nfs4_access_to_omode(u32 access) in nfs4_access_to_omode() argument
1261 switch (access & NFS4_SHARE_ACCESS_BOTH) { in nfs4_access_to_omode()
2469 unsigned int access, deny; in nfs4_show_open() local
2486 access = bmap_to_share_mode(ols->st_access_bmap); in nfs4_show_open()
2490 access & NFS4_SHARE_ACCESS_READ ? "r" : "-", in nfs4_show_open()
2491 access & NFS4_SHARE_ACCESS_WRITE ? "w" : "-"); in nfs4_show_open()
4873 int access = nfs4_access_to_access(open->op_share_access); in nfs4_get_vfs_file() local
4906 status = nfsd_file_acquire(rqstp, cur_fh, access, &nf); in nfs4_get_vfs_file()
4920 access)); in nfs4_get_vfs_file()
6150 static inline void nfs4_stateid_downgrade_bit(struct nfs4_ol_stateid *stp, u32 access) in nfs4_stateid_downgrade_bit() argument
6152 if (!test_access(access, stp)) in nfs4_stateid_downgrade_bit()
6154 nfs4_file_put_access(stp->st_stid.sc_file, access); in nfs4_stateid_downgrade_bit()
6155 clear_access(access, stp); in nfs4_stateid_downgrade_bit()
6625 static void get_lock_access(struct nfs4_ol_stateid *lock_stp, u32 access) in get_lock_access() argument
6631 if (test_access(access, lock_stp)) in get_lock_access()
6633 __nfs4_file_get_access(fp, access); in get_lock_access()
6634 set_access(access, lock_stp); in get_lock_access()