Searched refs:F_RDLCK (Results 1 – 21 of 21) sorted by relevance
136 #ifndef F_RDLCK137 #define F_RDLCK 0 macro
146 return F_RDLCK; in target_leasetype()279 return F_RDLCK; in flock_translate_cmd()314 case F_RDLCK: in assign_type()1110 fl.fl_type = (read_write == FLOCK_VERIFY_WRITE) ? F_WRLCK : F_RDLCK; in locks_mandatory_area()1143 case F_RDLCK: in lease_clear_pending()1181 lease_modify(before, F_RDLCK); in time_out_leases()1208 new_fl = lease_alloc(NULL, want_write ? F_WRLCK : F_RDLCK); in __break_lease()1360 if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0)) in generic_add_lease()1463 case F_RDLCK: in generic_setlease()1744 if ((flock.l_type != F_RDLCK) && (flock.l_type != F_WRLCK)) in fcntl_getlk()[all …]
88 if (fl->fl_type == F_RDLCK) { in afs_grant_locks()91 if (p->fl_type == F_RDLCK) { in afs_grant_locks()181 type = (fl->fl_type == F_RDLCK) ? in afs_lock_work()274 type = (fl->fl_type == F_RDLCK) ? AFS_LOCK_READ : AFS_LOCK_WRITE; in afs_do_setlk()498 fl->fl_type = F_RDLCK; in afs_do_getlk()
34 #define F_RDLCK 01 macro
46 #define F_RDLCK 1 macro
56 fl->fl_type = F_RDLCK; in ceph_lock_message()99 if (F_RDLCK == fl->fl_type) in ceph_lock()292 case F_RDLCK: in lock_to_ceph_filelock()
137 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm_decode_lock()166 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm_encode_testres()
123 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock()153 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
273 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm4_holder()312 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder()
268 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm_holder()306 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder()
174 case F_RDLCK: in v9fs_file_do_lock()275 fl->fl_type = F_RDLCK; in v9fs_file_getlock()
538 int type = excl ? F_WRLCK : F_RDLCK; in os_lock_file()
356 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
733 flock->fl_type = F_RDLCK; in cifs_lock_test()1003 if (flock->fl_type == F_RDLCK || flock->fl_type == F_SHLCK) in cifs_push_posix_locks()1088 } else if (flock->fl_type == F_RDLCK) { in cifs_read_flock()1163 flock->fl_type = F_RDLCK; in cifs_getlk()
772 if (((arg == F_RDLCK) && in cifs_setlease()
2594 pLockData->fl_type = F_RDLCK; in CIFSSMBPosixLock()
2841 fl->fl_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()3918 if (fl->fl_type != F_RDLCK) in nfs4_set_lock_denied()4155 file_lock.fl_type = F_RDLCK; in nfsd4_lock()4265 file_lock.fl_type = F_RDLCK; in nfsd4_lockt()
1225 if ((fl->fl_type & (F_RDLCK|F_WRLCK|F_UNLCK)) == F_RDLCK) in nfs4_lock_type()4565 fl->fl_type = F_RDLCK; in decode_lock_denied()
4807 switch (request->fl_type & (F_RDLCK|F_WRLCK|F_UNLCK)) { in nfs4_proc_lock()4808 case F_RDLCK: in nfs4_proc_lock()
1425 case F_RDLCK: in convert_fuse_file_lock()