Home
last modified time | relevance | path

Searched refs:flc_type (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.15/fs/9p/
H A Dvfs_file.c110 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->c.flc_type != F_UNLCK) { in v9fs_file_lock()
138 switch (fl->c.flc_type) { in v9fs_file_do_lock()
209 if (res < 0 && fl->c.flc_type != F_UNLCK) { in v9fs_file_do_lock()
210 unsigned char type = fl->c.flc_type; in v9fs_file_do_lock()
212 fl->c.flc_type = F_UNLCK; in v9fs_file_do_lock()
215 fl->c.flc_type = type; in v9fs_file_do_lock()
237 if (fl->c.flc_type != F_UNLCK) in v9fs_file_getlock()
257 fl->c.flc_type = F_RDLCK; in v9fs_file_getlock()
260 fl->c.flc_type = F_WRLCK; in v9fs_file_getlock()
263 fl->c.flc_type = F_UNLCK; in v9fs_file_getlock()
[all …]
/linux-6.15/fs/lockd/
H A Dxdr4.c92 fl->c.flc_type = F_RDLCK; in svcxdr_decode_lock()
104 if (xdr_stream_encode_bool(xdr, fl->c.flc_type != F_RDLCK) < 0) in svcxdr_encode_holder()
161 argp->lock.fl.c.flc_type = F_WRLCK; in nlm4svc_decode_testargs()
181 argp->lock.fl.c.flc_type = F_WRLCK; in nlm4svc_decode_lockargs()
206 argp->lock.fl.c.flc_type = F_WRLCK; in nlm4svc_decode_cancargs()
220 argp->lock.fl.c.flc_type = F_UNLCK; in nlm4svc_decode_unlockargs()
H A Dxdr.c92 fl->c.flc_type = F_RDLCK; in svcxdr_decode_lock()
110 if (xdr_stream_encode_bool(xdr, fl->c.flc_type != F_RDLCK) < 0) in svcxdr_encode_holder()
167 argp->lock.fl.c.flc_type = F_WRLCK; in nlmsvc_decode_testargs()
187 argp->lock.fl.c.flc_type = F_WRLCK; in nlmsvc_decode_lockargs()
212 argp->lock.fl.c.flc_type = F_WRLCK; in nlmsvc_decode_cancargs()
226 argp->lock.fl.c.flc_type = F_UNLCK; in nlmsvc_decode_unlockargs()
H A Dsvclock.c155 lock->fl.c.flc_type); in nlmsvc_lookup_block()
162 (long long)fl->fl_end, fl->c.flc_type, in nlmsvc_lookup_block()
492 lock->fl.c.flc_type, in nlmsvc_lock()
620 lock->fl.c.flc_type, in nlmsvc_testlock()
640 if (lock->fl.c.flc_type == F_UNLCK) { in nlmsvc_testlock()
646 lock->fl.c.flc_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
652 conflock->fl.c.flc_type = lock->fl.c.flc_type; in nlmsvc_testlock()
684 lock->fl.c.flc_type = F_UNLCK; in nlmsvc_unlock()
997 fl->c.flc_type = F_UNLCK; in nlmsvc_grant_reply()
H A Dclntproc.c146 lock->fl.c.flc_type = fl->c.flc_type; in nlmclnt_setlockargs()
186 if (fl->c.flc_type != F_UNLCK) { in nlmclnt_proc()
443 fl->c.flc_type = F_UNLCK; in nlmclnt_test()
451 fl->c.flc_type = req->a_res.lock.fl.c.flc_type; in nlmclnt_test()
628 type = fl->c.flc_type; in nlmclnt_lock()
629 fl->c.flc_type = F_UNLCK; in nlmclnt_lock()
633 fl->c.flc_type = type; in nlmclnt_lock()
H A Dclnt4xdr.c246 encode_bool(xdr, lock->fl.c.flc_type == F_RDLCK); in encode_nlm4_holder()
284 fl->c.flc_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder()
360 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm4_xdr_enc_testargs()
383 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm4_xdr_enc_lockargs()
406 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm4_xdr_enc_cancargs()
H A Dclntxdr.c242 encode_bool(xdr, lock->fl.c.flc_type == F_RDLCK); in encode_nlm_holder()
280 fl->c.flc_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder()
361 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm_xdr_enc_testargs()
384 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm_xdr_enc_lockargs()
407 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm_xdr_enc_cancargs()
H A Dsvcsubs.c184 lock.c.flc_type = F_UNLCK; in nlm_unlock_files()
/linux-6.15/fs/ceph/
H A Dlocks.c119 fl->fl_start, length, wait, fl->c.flc_type); in ceph_lock_message()
136 fl->c.flc_type = F_RDLCK; in ceph_lock_message()
138 fl->c.flc_type = F_WRLCK; in ceph_lock_message()
140 fl->c.flc_type = F_UNLCK; in ceph_lock_message()
155 fl->fl_start, length, wait, fl->c.flc_type, err); in ceph_lock_message()
297 if (op == CEPH_MDS_OP_SETFILELOCK && F_UNLCK != fl->c.flc_type) { in ceph_lock()
360 if (!err && F_UNLCK != fl->c.flc_type) { in ceph_flock()
415 switch (lock->c.flc_type) { in lock_to_ceph_filelock()
427 lock->c.flc_type); in lock_to_ceph_filelock()
/linux-6.15/fs/
H A Dlocks.c93 return fl->c.flc_type; in target_leasetype()
402 new->c.flc_type = fl->c.flc_type; in locks_copy_conflock()
473 fl->c.flc_type = type; in flock_make_lock()
483 flc->flc_type = type; in assign_type()
962 fl->c.flc_type = F_UNLCK; in posix_test_lock()
984 fl->c.flc_type = F_UNLCK; in posix_test_lock()
1104 if (request->c.flc_type == fl->c.flc_type) in flock_lock_inode()
1244 if (request->c.flc_type == fl->c.flc_type) { in posix_lock_inode()
2386 switch (fl->c.flc_type) { in check_fmode_for_setlk()
2621 lock.c.flc_type = F_UNLCK; in locks_remove_posix()
[all …]
/linux-6.15/include/trace/events/
H A Dfilelock.h89 __entry->type = fl ? fl->c.flc_type : 0;
143 __entry->type = fl ? fl->c.flc_type : 0;
195 __entry->type = fl->c.flc_type;
224 __entry->l_fl_type = lease->c.flc_type;
227 __entry->b_fl_type = breaker->c.flc_type;
/linux-6.15/fs/afs/
H A Dflock.c124 p->c.flc_type == type && in afs_next_locker()
466 fl->fl_start, fl->fl_end, fl->c.flc_type, mode); in afs_do_setlk()
707 fl->c.flc_type); in afs_do_unlk()
733 fl->c.flc_type = F_UNLCK; in afs_do_getlk()
746 fl->c.flc_type = F_RDLCK; in afs_do_getlk()
748 fl->c.flc_type = F_WRLCK; in afs_do_getlk()
757 _leave(" = %d [%hd]", ret, fl->c.flc_type); in afs_do_getlk()
772 fl->c.flc_type, fl->c.flc_flags, in afs_lock()
807 fl->c.flc_type, fl->c.flc_flags); in afs_flock()
/linux-6.15/include/linux/
H A Dfilelock.h105 unsigned char flc_type; member
165 return fl->c.flc_type == F_UNLCK; in lock_is_unlock()
170 return fl->c.flc_type == F_RDLCK; in lock_is_read()
175 return fl->c.flc_type == F_WRLCK; in lock_is_write()
/linux-6.15/include/linux/lockd/
H A Dlockd.h383 &&(fl1->c.flc_type == fl2->c.flc_type || fl2->c.flc_type == F_UNLCK); in nlm_compare_locks()
/linux-6.15/fs/nfs/
H A Dfile.c734 unsigned int saved_type = fl->c.flc_type; in do_getlk()
738 if (fl->c.flc_type != F_UNLCK) { in do_getlk()
742 fl->c.flc_type = saved_type; in do_getlk()
754 fl->c.flc_type = F_UNLCK; in do_getlk()
846 filp, fl->c.flc_type, fl->c.flc_flags, in nfs_lock()
883 filp, fl->c.flc_type, fl->c.flc_flags); in nfs_flock()
H A Dnfs4trace.h732 __entry->type = request->c.flc_type;
804 __entry->type = request->c.flc_type;
/linux-6.15/fs/ocfs2/
H A Dlocks.c56 request.c.flc_type = F_UNLCK; in ocfs2_do_flock()
/linux-6.15/fs/smb/client/
H A Dfile.c1610 flock->c.flc_type = F_RDLCK; in cifs_lock_test()
1612 flock->c.flc_type = F_WRLCK; in cifs_lock_test()
1616 flock->c.flc_type = F_UNLCK; in cifs_lock_test()
1701 flock->c.flc_type = saved_type; in cifs_posix_lock_test()
1873 unsigned char ftype = flock->c.flc_type; in cifs_push_posix_locks()
1988 } else if (flock->c.flc_type == F_EXLCK) { in cifs_read_flock()
2041 flock->c.flc_type = F_UNLCK; in cifs_getlk()
2049 flock->c.flc_type = F_WRLCK; in cifs_getlk()
2061 flock->c.flc_type = F_RDLCK; in cifs_getlk()
2066 flock->c.flc_type = F_WRLCK; in cifs_getlk()
[all …]
H A Dcifssmb.c2144 pLockData->c.flc_type = F_UNLCK; in CIFSSMBPosixLock()
2148 pLockData->c.flc_type = F_RDLCK; in CIFSSMBPosixLock()
2151 pLockData->c.flc_type = F_WRLCK; in CIFSSMBPosixLock()
/linux-6.15/fs/dlm/
H A Dplock.c458 fl->c.flc_type = F_UNLCK; in dlm_posix_get()
463 fl->c.flc_type = (op->info.ex) ? F_WRLCK : F_RDLCK; in dlm_posix_get()
/linux-6.15/fs/nfsd/
H A Dnfs4layouts.c212 fl->c.flc_type = F_RDLCK; in nfsd4_layout_setlease()
217 status = kernel_setlease(fl->c.flc_file, fl->c.flc_type, &fl, NULL); in nfsd4_layout_setlease()
H A Dnfs4state.c5848 fl->c.flc_type = deleg_is_read(dp->dl_type) ? F_RDLCK : F_WRLCK; in nfs4_alloc_init_lease()
6062 fl->c.flc_type, &fl, NULL); in nfs4_set_delegation()
7880 if (fl->c.flc_type != F_RDLCK) in nfs4_set_lock_denied()
8258 file_lock->c.flc_type = type; in nfsd4_lock()
8427 file_lock->c.flc_type = F_RDLCK; in nfsd4_lockt()
8431 file_lock->c.flc_type = F_WRLCK; in nfsd4_lockt()
8454 if (file_lock->c.flc_type != F_UNLCK) { in nfsd4_lockt()
8515 file_lock->c.flc_type = F_UNLCK; in nfsd4_locku()
9190 if (fl->c.flc_type == F_WRLCK) { in nfsd4_deleg_getattr_conflict()
/linux-6.15/fs/smb/server/
H A Dsmb2pdu.c7212 flock->c.flc_type = F_RDLCK; in smb2_set_flock_flags()
7218 flock->c.flc_type = F_WRLCK; in smb2_set_flock_flags()
7225 flock->c.flc_type = F_RDLCK; in smb2_set_flock_flags()
7231 flock->c.flc_type = F_WRLCK; in smb2_set_flock_flags()
7235 flock->c.flc_type = F_UNLCK; in smb2_set_flock_flags()
7370 if (cmp_lock->fl->c.flc_type != F_UNLCK && in smb2_lock()
7371 flock->c.flc_type != F_UNLCK) { in smb2_lock()
7607 rlock->c.flc_type = F_UNLCK; in smb2_lock()
/linux-6.15/fs/fuse/
H A Dfile.c2714 fl->c.flc_type = ffl->type; in convert_fuse_file_lock()
2731 inarg->lk.type = fl->c.flc_type; in fuse_lk_fill()
2769 struct pid *pid = fl->c.flc_type != F_UNLCK ? task_tgid(current) : NULL; in fuse_setlk()
/linux-6.15/fs/gfs2/
H A Dfile.c1500 request.c.flc_type = F_UNLCK; in do_flock()

12