Home
last modified time | relevance | path

Searched refs:F_RDLCK (Results 1 – 21 of 21) sorted by relevance

/linux-3.4.99/include/asm-generic/
Dfcntl.h136 #ifndef F_RDLCK
137 #define F_RDLCK 0 macro
/linux-3.4.99/fs/
Dlocks.c146 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 …]
/linux-3.4.99/fs/afs/
Dflock.c88 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()
/linux-3.4.99/arch/parisc/include/asm/
Dfcntl.h34 #define F_RDLCK 01 macro
/linux-3.4.99/arch/alpha/include/asm/
Dfcntl.h46 #define F_RDLCK 1 macro
/linux-3.4.99/fs/ceph/
Dlocks.c56 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()
/linux-3.4.99/arch/sparc/include/asm/
Dfcntl.h46 #define F_RDLCK 1 macro
/linux-3.4.99/fs/lockd/
Dxdr.c137 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()
Dxdr4.c123 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()
Dclnt4xdr.c273 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()
Dclntxdr.c268 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()
/linux-3.4.99/fs/9p/
Dvfs_file.c174 case F_RDLCK: in v9fs_file_do_lock()
275 fl->fl_type = F_RDLCK; in v9fs_file_getlock()
/linux-3.4.99/arch/um/os-Linux/
Dfile.c538 int type = excl ? F_WRLCK : F_RDLCK; in os_lock_file()
/linux-3.4.99/fs/dlm/
Dplock.c356 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
/linux-3.4.99/fs/cifs/
Dfile.c733 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()
Dcifsfs.c772 if (((arg == F_RDLCK) && in cifs_setlease()
Dcifssmb.c2594 pLockData->fl_type = F_RDLCK; in CIFSSMBPosixLock()
/linux-3.4.99/fs/nfsd/
Dnfs4state.c2841 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()
/linux-3.4.99/fs/nfs/
Dnfs4xdr.c1225 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()
Dnfs4proc.c4807 switch (request->fl_type & (F_RDLCK|F_WRLCK|F_UNLCK)) { in nfs4_proc_lock()
4808 case F_RDLCK: in nfs4_proc_lock()
/linux-3.4.99/fs/fuse/
Dfile.c1425 case F_RDLCK: in convert_fuse_file_lock()