Home
last modified time | relevance | path

Searched refs:F_WRLCK (Results 1 – 30 of 30) sorted by relevance

/linux-4.1.27/fs/ceph/
Dlocks.c86 fl->fl_type = F_WRLCK; in ceph_lock_message()
180 else if (F_WRLCK == fl->fl_type) in ceph_lock()
223 else if (F_WRLCK == fl->fl_type) in ceph_flock()
369 case F_WRLCK: in lock_to_ceph_filelock()
/linux-4.1.27/arch/parisc/include/uapi/asm/
Dfcntl.h36 #define F_WRLCK 02 macro
/linux-4.1.27/arch/alpha/include/uapi/asm/
Dfcntl.h48 #define F_WRLCK 2 macro
/linux-4.1.27/arch/sparc/include/uapi/asm/
Dfcntl.h48 #define F_WRLCK 2 macro
/linux-4.1.27/fs/
Dlocks.c361 return F_WRLCK; in flock_translate_cmd()
396 case F_WRLCK: in assign_type()
717 if (sys_fl->fl_type == F_WRLCK) in locks_conflict()
719 if (caller_fl->fl_type == F_WRLCK) in locks_conflict()
1253 fl.fl_type = (read_write == FLOCK_VERIFY_WRITE) ? F_WRLCK : F_RDLCK; in locks_mandatory_area()
1397 new_fl = lease_alloc(NULL, want_write ? F_WRLCK : F_RDLCK); in __break_lease()
1505 if (fl->fl_type == F_WRLCK) in lease_get_mtime()
1587 if ((arg == F_WRLCK) && ((d_count(dentry) > 1) || in check_conflicting_open()
1624 if (is_deleg && arg == F_WRLCK) { in generic_add_lease()
1657 if (arg == F_WRLCK) in generic_add_lease()
[all …]
/linux-4.1.27/fs/lockd/
Dclntxdr.c301 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder()
382 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_testargs()
404 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_lockargs()
426 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_cancargs()
Dclnt4xdr.c307 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder()
389 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_testargs()
411 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_lockargs()
433 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_cancargs()
Dxdr4.c193 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
218 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
238 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
Dxdr.c196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
241 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
/linux-4.1.27/include/uapi/asm-generic/
Dfcntl.h166 #define F_WRLCK 1 macro
/linux-4.1.27/fs/dlm/
Dplock.c125 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_lock()
337 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_get()
368 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
/linux-4.1.27/fs/ocfs2/
Dlocks.c45 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
/linux-4.1.27/include/trace/events/
Dfilelock.h34 { F_WRLCK, "F_WRLCK" }, \
/linux-4.1.27/fs/9p/
Dvfs_file.c175 case F_WRLCK: in v9fs_file_do_lock()
278 fl->fl_type = F_WRLCK; in v9fs_file_getlock()
/linux-4.1.27/arch/um/os-Linux/
Dfile.c553 int type = excl ? F_WRLCK : F_RDLCK; in os_lock_file()
/linux-4.1.27/fs/afs/
Dflock.c501 fl->fl_type = F_WRLCK; in afs_do_getlk()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_flock.c692 getlk->fl_type = F_WRLCK; in ldlm_flock_completion_ast()
/linux-4.1.27/security/apparmor/
Dlsm.c463 if (cmd == F_WRLCK) in apparmor_file_lock()
/linux-4.1.27/fs/nfs/
Dwrite.c1181 fl->fl_type == F_WRLCK; in is_whole_file_wrlock()
1219 if (fl->fl_type == F_WRLCK) in nfs_can_extend_write()
Dnfs4trace.h504 { F_WRLCK, "WRLCK" }, \
Dnfs4xdr.c4835 fl->fl_type = F_WRLCK; in decode_lock_denied()
Dnfs4proc.c6008 case F_WRLCK: in nfs4_proc_lock()
/linux-4.1.27/fs/cifs/
Dfile.c916 flock->fl_type = F_WRLCK; in cifs_lock_test()
1261 if (flock->fl_type == F_WRLCK) { in cifs_read_flock()
1332 flock->fl_type = F_WRLCK; in cifs_getlk()
1349 flock->fl_type = F_WRLCK; in cifs_getlk()
Dcifsfs.c833 ((arg == F_WRLCK) && CIFS_CACHE_WRITE(CIFS_I(inode)))) in cifs_setlease()
Dcifssmb.c2503 pLockData->fl_type = F_WRLCK; in CIFSSMBPosixLock()
/linux-4.1.27/fs/gfs2/
Dfile.c1025 state = (fl->fl_type == F_WRLCK) ? LM_ST_EXCLUSIVE : LM_ST_SHARED; in do_flock()
/linux-4.1.27/tools/hv/
Dhv_kvp_daemon.c125 struct flock fl = {F_WRLCK, SEEK_SET, 0, 0, 0}; in kvp_acquire_lock()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dfile.c2418 case F_WRLCK: in ll_file_ioctl()
2736 case F_WRLCK: in ll_file_flock()
/linux-4.1.27/fs/nfsd/
Dnfs4state.c3989 fl->fl_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()
5542 file_lock->fl_type = F_WRLCK; in nfsd4_lock()
5679 file_lock->fl_type = F_WRLCK; in nfsd4_lockt()
/linux-4.1.27/fs/fuse/
Dfile.c2079 case F_WRLCK: in convert_fuse_file_lock()