Home
last modified time | relevance | path

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

12

/linux/include/trace/events/
A 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/fs/ceph/
A 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()
266 if (F_RDLCK == fl->fl_type) in ceph_lock()
268 else if (F_WRLCK == fl->fl_type) in ceph_lock()
320 if (F_UNLCK == fl->fl_type) in ceph_flock()
328 if (F_RDLCK == fl->fl_type) in ceph_flock()
330 else if (F_WRLCK == fl->fl_type) in ceph_flock()
335 if (F_UNLCK == fl->fl_type) { in ceph_flock()
[all …]
/linux/fs/9p/
A 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
152 switch (fl->fl_type) { in v9fs_file_do_lock()
223 if (res < 0 && fl->fl_type != F_UNLCK) { in v9fs_file_do_lock()
224 fl_type = fl->fl_type; in v9fs_file_do_lock()
225 fl->fl_type = F_UNLCK; in v9fs_file_do_lock()
228 fl->fl_type = fl_type; in v9fs_file_do_lock()
250 if (fl->fl_type != F_UNLCK) in v9fs_file_getlock()
270 fl->fl_type = F_RDLCK; in v9fs_file_getlock()
273 fl->fl_type = F_WRLCK; in v9fs_file_getlock()
[all …]
/linux/fs/afs/
A Dflock.c115 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()
733 fl->fl_type = F_UNLCK; in afs_do_getlk()
737 if (fl->fl_type == F_UNLCK) { in afs_do_getlk()
746 fl->fl_type = F_RDLCK; in afs_do_getlk()
748 fl->fl_type = F_WRLCK; in afs_do_getlk()
772 fl->fl_type, fl->fl_flags, in afs_lock()
781 if (fl->fl_type == F_UNLCK) in afs_lock()
[all …]
/linux/fs/
A Dlocks.c88 return fl->fl_type; in target_leasetype()
309 new->fl_type = fl->fl_type; in locks_copy_conflock()
390 fl->fl_type = type; in flock_make_lock()
402 fl->fl_type = type; in assign_type()
850 fl->fl_type = F_UNLCK; in posix_test_lock()
861 fl->fl_type = F_UNLCK; in posix_test_lock()
979 if (request->fl_type == fl->fl_type) in flock_lock_inode()
1105 if (request->fl_type == fl->fl_type) { in posix_lock_inode()
2267 switch (fl->fl_type) { in check_fmode_for_setlk()
2395 if (fl->fl_type != F_UNLCK) in fcntl_getlk64()
[all …]
/linux/fs/lockd/
A 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()
A Dxdr4.c91 fl->fl_type = F_RDLCK; in svcxdr_decode_lock()
109 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
166 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
186 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
211 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
225 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
A 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()
A 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()
482 lock->fl.fl_type, lock->fl.fl_pid, in nlmsvc_lock()
596 lock->fl.fl_type, in nlmsvc_testlock()
619 if (lock->fl.fl_type == F_UNLCK) { in nlmsvc_testlock()
625 lock->fl.fl_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
631 conflock->fl.fl_type = lock->fl.fl_type; in nlmsvc_testlock()
667 lock->fl.fl_type = F_UNLCK; in nlmsvc_unlock()
A 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()
A 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()
A 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/fs/ocfs2/
A 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()
A Dstack_user.c754 fl->fl_type = F_UNLCK; in user_plock()
759 else if (fl->fl_type == F_UNLCK) in user_plock()
/linux/fs/nfs/
A Dfile.c692 unsigned int saved_type = fl->fl_type; in do_getlk()
696 if (fl->fl_type != F_UNLCK) { in do_getlk()
700 fl->fl_type = saved_type; in do_getlk()
712 fl->fl_type = F_UNLCK; in do_getlk()
804 filp, fl->fl_type, fl->fl_flags, in nfs_lock()
823 else if (fl->fl_type == F_UNLCK) in nfs_lock()
841 filp, fl->fl_type, fl->fl_flags); in nfs_flock()
850 if (fl->fl_type == F_UNLCK) in nfs_flock()
A Dwrite.c1310 fl->fl_type == F_WRLCK; in is_whole_file_wrlock()
1349 if (fl->fl_type == F_WRLCK) in nfs_can_extend_write()
/linux/include/linux/lockd/
A Dlockd.h374 &&(fl1->fl_type == fl2->fl_type || fl2->fl_type == F_UNLCK); in nlm_compare_locks()
/linux/fs/dlm/
A 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()
360 fl->fl_type = F_UNLCK; in dlm_posix_get()
365 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
/linux/fs/gfs2/
A Dfile.c1445 fl->fl_type = F_UNLCK; in gfs2_lock()
1448 if (fl->fl_type == F_UNLCK) in gfs2_lock()
1454 else if (fl->fl_type == F_UNLCK) in gfs2_lock()
1471 state = (fl->fl_type == F_WRLCK) ? LM_ST_EXCLUSIVE : LM_ST_SHARED; in do_flock()
1481 request.fl_type = F_UNLCK; in do_flock()
1544 if (fl->fl_type == F_UNLCK) { in gfs2_flock()
/linux/fs/cifs/
A Dfile.c1124 flock->fl_type = F_RDLCK; in cifs_lock_test()
1126 flock->fl_type = F_WRLCK; in cifs_lock_test()
1130 flock->fl_type = F_UNLCK; in cifs_lock_test()
1214 flock->fl_type = saved_type; in cifs_posix_lock_test()
1393 if (flock->fl_type == F_RDLCK || flock->fl_type == F_SHLCK) in cifs_push_posix_locks()
1478 if (flock->fl_type == F_WRLCK) { in cifs_read_flock()
1482 } else if (flock->fl_type == F_UNLCK) { in cifs_read_flock()
1542 flock->fl_type = F_UNLCK; in cifs_getlk()
1550 flock->fl_type = F_WRLCK; in cifs_getlk()
1562 flock->fl_type = F_RDLCK; in cifs_getlk()
[all …]
/linux/fs/nfsd/
A 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()
A Dnfs4state.c5041 fl->fl_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()
5162 status = vfs_setlease(fp->fi_deleg_file->nf_file, fl->fl_type, &fl, NULL); in nfs4_set_delegation()
6578 if (fl->fl_type != F_RDLCK) in nfs4_set_lock_denied()
6844 unsigned char fl_type; in nfsd4_lock() local
6923 fl_type = F_RDLCK; in nfsd4_lock()
6936 fl_type = F_WRLCK; in nfsd4_lock()
6956 file_lock->fl_type = fl_type; in nfsd4_lock()
7109 file_lock->fl_type = F_RDLCK; in nfsd4_lockt()
7113 file_lock->fl_type = F_WRLCK; in nfsd4_lockt()
7136 if (file_lock->fl_type != F_UNLCK) { in nfsd4_lockt()
[all …]
/linux/fs/ksmbd/
A Dsmb2pdu.c6667 flock->fl_type = F_RDLCK; in smb2_set_flock_flags()
6673 flock->fl_type = F_WRLCK; in smb2_set_flock_flags()
6680 flock->fl_type = F_RDLCK; in smb2_set_flock_flags()
6686 flock->fl_type = F_WRLCK; in smb2_set_flock_flags()
6690 flock->fl_type = F_UNLCK; in smb2_set_flock_flags()
6824 if (cmp_lock->fl->fl_type != F_UNLCK && in smb2_lock()
6825 flock->fl_type != F_UNLCK) { in smb2_lock()
6875 if (smb_lock->fl->fl_type == F_UNLCK) { in smb2_lock()
6935 if (smb_lock->fl->fl_type == F_UNLCK && nolock) { in smb2_lock()
7068 rlock->fl_type = F_UNLCK; in smb2_lock()
A Dvfs.c335 if (flock->fl_type == F_RDLCK) { in check_lock_range()
341 } else if (flock->fl_type == F_WRLCK) { in check_lock_range()
/linux/fs/fuse/
A Dfile.c2453 fl->fl_type = ffl->type; in convert_fuse_file_lock()
2470 inarg->lk.type = fl->fl_type; in fuse_lk_fill()
2508 struct pid *pid = fl->fl_type != F_UNLCK ? task_tgid(current) : NULL; in fuse_setlk()

Completed in 95 milliseconds

12