Home
last modified time | relevance | path

Searched refs:fl_type (Results 1 – 25 of 31) sorted by relevance

12

/linux-5.19.10/include/trace/events/
Dfilelock.h75 __field(unsigned char, fl_type)
89 __entry->fl_type = fl ? fl->fl_type : 0;
99 show_fl_type(__entry->fl_type),
131 __field(unsigned char, fl_type)
143 __entry->fl_type = fl ? fl->fl_type : 0;
152 show_fl_type(__entry->fl_type),
184 __field(unsigned char, fl_type)
195 __entry->fl_type = fl->fl_type;
203 show_fl_type(__entry->fl_type))
224 __entry->l_fl_type = lease->fl_type;
[all …]
/linux-5.19.10/fs/ceph/
Dlocks.c104 wait, fl->fl_type); in ceph_lock_message()
121 fl->fl_type = F_RDLCK; in ceph_lock_message()
123 fl->fl_type = F_WRLCK; in ceph_lock_message()
125 fl->fl_type = F_UNLCK; in ceph_lock_message()
140 length, wait, fl->fl_type, err); in ceph_lock_message()
261 if (op == CEPH_MDS_OP_SETFILELOCK && F_UNLCK == fl->fl_type) in ceph_lock()
266 if (F_RDLCK == fl->fl_type) in ceph_lock()
268 else if (F_WRLCK == fl->fl_type) in ceph_lock()
273 if (op == CEPH_MDS_OP_SETFILELOCK && F_UNLCK == fl->fl_type) { in ceph_lock()
281 if (op == CEPH_MDS_OP_SETFILELOCK && F_UNLCK != fl->fl_type) { in ceph_lock()
[all …]
/linux-5.19.10/fs/9p/
Dvfs_file.c122 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
136 unsigned char fl_type; in v9fs_file_do_lock() local
151 switch (fl->fl_type) { in v9fs_file_do_lock()
222 if (res < 0 && fl->fl_type != F_UNLCK) { in v9fs_file_do_lock()
223 fl_type = fl->fl_type; in v9fs_file_do_lock()
224 fl->fl_type = F_UNLCK; in v9fs_file_do_lock()
227 fl->fl_type = fl_type; in v9fs_file_do_lock()
249 if (fl->fl_type != F_UNLCK) in v9fs_file_getlock()
269 fl->fl_type = F_RDLCK; in v9fs_file_getlock()
272 fl->fl_type = F_WRLCK; in v9fs_file_getlock()
[all …]
/linux-5.19.10/fs/afs/
Dflock.c96 if (!exclusive && p->fl_type == F_WRLCK) in afs_grant_locks()
115 unsigned int fl_type = F_RDLCK; in afs_next_locker() local
120 fl_type = F_WRLCK; in afs_next_locker()
124 p->fl_type == fl_type && in afs_next_locker()
133 (next->fl_type == F_WRLCK || p->fl_type == F_RDLCK)) in afs_next_locker()
467 fl->fl_start, fl->fl_end, fl->fl_type, mode); in afs_do_setlk()
474 type = (fl->fl_type == F_RDLCK) ? AFS_LOCK_READ : AFS_LOCK_WRITE; in afs_do_setlk()
707 _enter("{%llx:%llu},%u", vnode->fid.vid, vnode->fid.vnode, fl->fl_type); in afs_do_unlk()
733 fl->fl_type = F_UNLCK; in afs_do_getlk()
737 if (fl->fl_type == F_UNLCK) { in afs_do_getlk()
[all …]
/linux-5.19.10/fs/
Dlocks.c89 return fl->fl_type; in target_leasetype()
210 …gs=0x%x fl_type=0x%x fl_pid=%u\n", list_type, fl->fl_owner, fl->fl_flags, fl->fl_type, fl->fl_pid); in locks_dump_ctx_list()
244 fl->fl_owner, fl->fl_flags, fl->fl_type, fl->fl_pid); in locks_check_ctx_file_list()
367 new->fl_type = fl->fl_type; in locks_copy_conflock()
448 fl->fl_type = type; in flock_make_lock()
460 fl->fl_type = type; in assign_type()
858 if (sys_fl->fl_type == F_WRLCK) in locks_conflict()
860 if (caller_fl->fl_type == F_WRLCK) in locks_conflict()
910 fl->fl_type = F_UNLCK; in posix_test_lock()
932 fl->fl_type = F_UNLCK; in posix_test_lock()
[all …]
/linux-5.19.10/fs/lockd/
Dxdr.c92 fl->fl_type = F_RDLCK; in svcxdr_decode_lock()
110 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
167 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
187 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
212 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
226 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
Dxdr4.c82 fl->fl_type = F_RDLCK; in svcxdr_decode_lock()
94 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
151 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
171 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
196 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
210 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
Dclntproc.c142 lock->fl.fl_type = fl->fl_type; in nlmclnt_setlockargs()
182 if (fl->fl_type != F_UNLCK) { in nlmclnt_proc()
438 fl->fl_type = F_UNLCK; in nlmclnt_test()
446 fl->fl_type = req->a_res.lock.fl.fl_type; in nlmclnt_test()
520 unsigned char fl_type; in nlmclnt_lock() local
605 fl_type = fl->fl_type; in nlmclnt_lock()
606 fl->fl_type = F_UNLCK; in nlmclnt_lock()
610 fl->fl_type = fl_type; in nlmclnt_lock()
Dsvclock.c154 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block()
160 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block()
484 lock->fl.fl_type, lock->fl.fl_pid, in nlmsvc_lock()
598 lock->fl.fl_type, in nlmsvc_testlock()
621 if (lock->fl.fl_type == F_UNLCK) { in nlmsvc_testlock()
627 lock->fl.fl_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
633 conflock->fl.fl_type = lock->fl.fl_type; in nlmsvc_testlock()
669 lock->fl.fl_type = F_UNLCK; in nlmsvc_unlock()
Dclntxdr.c241 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm_holder()
279 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()
Dclnt4xdr.c246 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm4_holder()
285 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()
Dsvcsubs.c76 return (lock->fl_type == F_WRLCK) ? O_WRONLY : O_RDONLY; in lock_to_openmode()
184 lock.fl_type = F_UNLCK; in nlm_unlock_files()
/linux-5.19.10/fs/ocfs2/
Dlocks.c29 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
55 request.fl_type = F_UNLCK; in ocfs2_do_flock()
109 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
Dstack_user.c748 fl->fl_type = F_UNLCK; in user_plock()
753 else if (fl->fl_type == F_UNLCK) in user_plock()
/linux-5.19.10/fs/nfs/
Dfile.c697 unsigned int saved_type = fl->fl_type; in do_getlk()
701 if (fl->fl_type != F_UNLCK) { in do_getlk()
705 fl->fl_type = saved_type; in do_getlk()
717 fl->fl_type = F_UNLCK; in do_getlk()
809 filp, fl->fl_type, fl->fl_flags, in nfs_lock()
828 else if (fl->fl_type == F_UNLCK) in nfs_lock()
846 filp, fl->fl_type, fl->fl_flags); in nfs_flock()
855 if (fl->fl_type == F_UNLCK) in nfs_flock()
Dwrite.c1308 fl->fl_type == F_WRLCK; in is_whole_file_wrlock()
1347 if (fl->fl_type == F_WRLCK) in nfs_can_extend_write()
/linux-5.19.10/include/linux/lockd/
Dlockd.h379 &&(fl1->fl_type == fl2->fl_type || fl2->fl_type == F_UNLCK); in nlm_compare_locks()
/linux-5.19.10/fs/dlm/
Dplock.c126 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_lock()
329 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_get()
349 fl->fl_type = F_UNLCK; in dlm_posix_get()
354 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
/linux-5.19.10/fs/gfs2/
Dfile.c1432 fl->fl_type = F_UNLCK; in gfs2_lock()
1435 if (fl->fl_type == F_UNLCK) in gfs2_lock()
1441 else if (fl->fl_type == F_UNLCK) in gfs2_lock()
1458 state = (fl->fl_type == F_WRLCK) ? LM_ST_EXCLUSIVE : LM_ST_SHARED; in do_flock()
1468 request.fl_type = F_UNLCK; in do_flock()
1530 if (fl->fl_type == F_UNLCK) { in gfs2_flock()
/linux-5.19.10/fs/cifs/
Dfile.c1130 flock->fl_type = F_RDLCK; in cifs_lock_test()
1132 flock->fl_type = F_WRLCK; in cifs_lock_test()
1136 flock->fl_type = F_UNLCK; in cifs_lock_test()
1211 unsigned char saved_type = flock->fl_type; in cifs_posix_lock_test()
1219 if (flock->fl_type == F_UNLCK && !cinode->can_cache_brlcks) { in cifs_posix_lock_test()
1220 flock->fl_type = saved_type; in cifs_posix_lock_test()
1399 if (flock->fl_type == F_RDLCK || flock->fl_type == F_SHLCK) in cifs_push_posix_locks()
1484 if (flock->fl_type == F_WRLCK) { in cifs_read_flock()
1488 } else if (flock->fl_type == F_UNLCK) { in cifs_read_flock()
1493 } else if (flock->fl_type == F_RDLCK) { in cifs_read_flock()
[all …]
/linux-5.19.10/fs/nfsd/
Dnfs4layouts.c197 fl->fl_type = F_RDLCK; in nfsd4_layout_setlease()
203 status = vfs_setlease(fl->fl_file, fl->fl_type, &fl, NULL); in nfsd4_layout_setlease()
Dnfs4state.c5195 fl->fl_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()
5316 status = vfs_setlease(fp->fi_deleg_file->nf_file, fl->fl_type, &fl, NULL); in nfs4_set_delegation()
6837 if (fl->fl_type != F_RDLCK) in nfs4_set_lock_denied()
7102 unsigned char fl_type; in nfsd4_lock() local
7179 fl_type = F_RDLCK; in nfsd4_lock()
7191 fl_type = F_WRLCK; in nfsd4_lock()
7221 file_lock->fl_type = fl_type; in nfsd4_lock()
7381 file_lock->fl_type = F_RDLCK; in nfsd4_lockt()
7385 file_lock->fl_type = F_WRLCK; in nfsd4_lockt()
7408 if (file_lock->fl_type != F_UNLCK) { in nfsd4_lockt()
[all …]
/linux-5.19.10/fs/ksmbd/
Dsmb2pdu.c6706 flock->fl_type = F_RDLCK; in smb2_set_flock_flags()
6712 flock->fl_type = F_WRLCK; in smb2_set_flock_flags()
6719 flock->fl_type = F_RDLCK; in smb2_set_flock_flags()
6725 flock->fl_type = F_WRLCK; in smb2_set_flock_flags()
6729 flock->fl_type = F_UNLCK; in smb2_set_flock_flags()
6860 if (cmp_lock->fl->fl_type != F_UNLCK && in smb2_lock()
6861 flock->fl_type != F_UNLCK) { in smb2_lock()
6911 if (smb_lock->fl->fl_type == F_UNLCK) { in smb2_lock()
6971 if (smb_lock->fl->fl_type == F_UNLCK && nolock) { in smb2_lock()
7104 rlock->fl_type = F_UNLCK; in smb2_lock()
Dvfs.c334 if (flock->fl_type == F_RDLCK) { in check_lock_range()
340 } else if (flock->fl_type == F_WRLCK) { in check_lock_range()
/linux-5.19.10/fs/fuse/
Dfile.c2484 fl->fl_type = ffl->type; in convert_fuse_file_lock()
2501 inarg->lk.type = fl->fl_type; in fuse_lk_fill()
2539 struct pid *pid = fl->fl_type != F_UNLCK ? task_tgid(current) : NULL; in fuse_setlk()

12