Home
last modified time | relevance | path

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

12

/Linux-v5.4/arch/parisc/include/uapi/asm/
Dfcntl.h37 #define F_WRLCK 02 macro
/Linux-v5.4/arch/alpha/include/uapi/asm/
Dfcntl.h49 #define F_WRLCK 2 macro
/Linux-v5.4/arch/sparc/include/uapi/asm/
Dfcntl.h49 #define F_WRLCK 2 macro
/Linux-v5.4/fs/ceph/
Dlocks.c123 fl->fl_type = F_WRLCK; in ceph_lock_message()
253 else if (F_WRLCK == fl->fl_type) in ceph_lock()
309 else if (F_WRLCK == fl->fl_type) in ceph_flock()
370 case F_WRLCK: in lock_to_ceph_filelock()
/Linux-v5.4/fs/lockd/
Dclnt4xdr.c285 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder()
367 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_testargs()
390 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_lockargs()
413 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_cancargs()
Dclntxdr.c279 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder()
360 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_testargs()
383 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_lockargs()
406 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_cancargs()
Dxdr.c196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
224 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
245 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
Dxdr4.c193 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
242 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
/Linux-v5.4/fs/
Dlocks.c470 return F_WRLCK; in flock_translate_cmd()
508 case F_WRLCK: in assign_type()
885 if (sys_fl->fl_type == F_WRLCK) in locks_conflict()
887 if (caller_fl->fl_type == F_WRLCK) in locks_conflict()
1587 new_fl = lease_alloc(NULL, want_write ? F_WRLCK : F_RDLCK); in __break_lease()
1702 if (fl && (fl->fl_type == F_WRLCK)) in lease_get_mtime()
1784 else if (arg != F_WRLCK) in check_conflicting_open()
1834 if (is_deleg && arg == F_WRLCK) { in generic_add_lease()
1868 if (arg == F_WRLCK) in generic_add_lease()
1982 case F_WRLCK: in generic_setlease()
[all …]
Dread_write.c393 read_write == READ ? F_RDLCK : F_WRLCK); in rw_verify_area()
1768 write ? F_WRLCK : F_RDLCK); in remap_verify_area()
/Linux-v5.4/include/uapi/asm-generic/
Dfcntl.h167 #define F_WRLCK 1 macro
/Linux-v5.4/tools/include/uapi/asm-generic/
Dfcntl.h166 #define F_WRLCK 1 macro
/Linux-v5.4/fs/dlm/
Dplock.c122 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_lock()
334 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_get()
365 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
/Linux-v5.4/fs/ocfs2/
Dlocks.c31 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
/Linux-v5.4/fs/afs/
Dflock.c95 if (!exclusive && p->fl_type == F_WRLCK) in afs_grant_locks()
119 fl_type = F_WRLCK; in afs_next_locker()
132 (next->fl_type == F_WRLCK || p->fl_type == F_RDLCK)) in afs_next_locker()
759 fl->fl_type = F_WRLCK; in afs_do_getlk()
/Linux-v5.4/fs/9p/
Dvfs_file.c161 case F_WRLCK: in v9fs_file_do_lock()
278 fl->fl_type = F_WRLCK; in v9fs_file_getlock()
/Linux-v5.4/include/trace/events/
Dfilelock.h35 { F_WRLCK, "F_WRLCK" }, \
Dafs.h375 EM(F_WRLCK, "WRLCK") \
/Linux-v5.4/arch/um/os-Linux/
Dfile.c575 int type = excl ? F_WRLCK : F_RDLCK; in os_lock_file()
/Linux-v5.4/fs/nfs/
Dwrite.c1303 fl->fl_type == F_WRLCK; in is_whole_file_wrlock()
1341 if (fl->fl_type == F_WRLCK) in nfs_can_extend_write()
Dnfs4trace.h784 TRACE_DEFINE_ENUM(F_WRLCK);
795 { F_WRLCK, "WRLCK" }, \
/Linux-v5.4/fs/cifs/
Dfile.c1023 flock->fl_type = F_WRLCK; in cifs_lock_test()
1381 if (flock->fl_type == F_WRLCK) { in cifs_read_flock()
1453 flock->fl_type = F_WRLCK; in cifs_getlk()
1470 flock->fl_type = F_WRLCK; in cifs_getlk()
/Linux-v5.4/tools/hv/
Dhv_kvp_daemon.c123 struct flock fl = {F_WRLCK, SEEK_SET, 0, 0, 0}; in kvp_acquire_lock()
/Linux-v5.4/fs/gfs2/
Dfile.c1207 state = (fl->fl_type == F_WRLCK) ? LM_ST_EXCLUSIVE : LM_ST_SHARED; in do_flock()
/Linux-v5.4/security/apparmor/
Dlsm.c475 if (cmd == F_WRLCK) in apparmor_file_lock()

12