Home
last modified time | relevance | path

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

12

/linux/fs/9p/
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/fs/ceph/
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/fs/lockd/
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()
A Dxdr4.c93 fl->c.flc_type = F_RDLCK; in svcxdr_decode_lock()
105 if (xdr_stream_encode_bool(xdr, fl->c.flc_type != F_RDLCK) < 0) in svcxdr_encode_holder()
162 argp->lock.fl.c.flc_type = F_WRLCK; in nlm4svc_decode_testargs()
182 argp->lock.fl.c.flc_type = F_WRLCK; in nlm4svc_decode_lockargs()
207 argp->lock.fl.c.flc_type = F_WRLCK; in nlm4svc_decode_cancargs()
221 argp->lock.fl.c.flc_type = F_UNLCK; in nlm4svc_decode_unlockargs()
A Dsvclock.c156 lock->fl.c.flc_type); in nlmsvc_lookup_block()
163 (long long)fl->fl_end, fl->c.flc_type, in nlmsvc_lookup_block()
493 lock->fl.c.flc_type, in nlmsvc_lock()
621 lock->fl.c.flc_type, in nlmsvc_testlock()
641 if (lock->fl.c.flc_type == F_UNLCK) { in nlmsvc_testlock()
647 lock->fl.c.flc_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
653 conflock->fl.c.flc_type = lock->fl.c.flc_type; in nlmsvc_testlock()
685 lock->fl.c.flc_type = F_UNLCK; in nlmsvc_unlock()
998 fl->c.flc_type = F_UNLCK; in nlmsvc_grant_reply()
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()
A Dclntxdr.c241 encode_bool(xdr, lock->fl.c.flc_type == F_RDLCK); in encode_nlm_holder()
279 fl->c.flc_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder()
360 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm_xdr_enc_testargs()
383 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm_xdr_enc_lockargs()
406 encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK); in nlm_xdr_enc_cancargs()
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()
A Dsvcsubs.c184 lock.c.flc_type = F_UNLCK; in nlm_unlock_files()
/linux/fs/
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()
2391 switch (fl->c.flc_type) { in check_fmode_for_setlk()
2626 lock.c.flc_type = F_UNLCK; in locks_remove_posix()
[all …]
/linux/include/trace/events/
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;
A Dafs.h1197 __entry->type = fl->c.flc_type;
/linux/fs/afs/
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/include/linux/
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/include/linux/lockd/
A Dlockd.h383 &&(fl1->c.flc_type == fl2->c.flc_type || fl2->c.flc_type == F_UNLCK); in nlm_compare_locks()
/linux/fs/nfs/
A Dfile.c725 unsigned int saved_type = fl->c.flc_type; in do_getlk()
729 if (fl->c.flc_type != F_UNLCK) { in do_getlk()
733 fl->c.flc_type = saved_type; in do_getlk()
745 fl->c.flc_type = F_UNLCK; in do_getlk()
837 filp, fl->c.flc_type, fl->c.flc_flags, in nfs_lock()
874 filp, fl->c.flc_type, fl->c.flc_flags); in nfs_flock()
A Dnfs4trace.h732 __entry->type = request->c.flc_type;
804 __entry->type = request->c.flc_type;
/linux/fs/ocfs2/
A Dlocks.c56 request.c.flc_type = F_UNLCK; in ocfs2_do_flock()
/linux/fs/smb/client/
A Dfile.c1599 flock->c.flc_type = F_RDLCK; in cifs_lock_test()
1601 flock->c.flc_type = F_WRLCK; in cifs_lock_test()
1605 flock->c.flc_type = F_UNLCK; in cifs_lock_test()
1690 flock->c.flc_type = saved_type; in cifs_posix_lock_test()
1862 unsigned char ftype = flock->c.flc_type; in cifs_push_posix_locks()
1977 } else if (flock->c.flc_type == F_EXLCK) { in cifs_read_flock()
2030 flock->c.flc_type = F_UNLCK; in cifs_getlk()
2038 flock->c.flc_type = F_WRLCK; in cifs_getlk()
2050 flock->c.flc_type = F_RDLCK; in cifs_getlk()
2055 flock->c.flc_type = F_WRLCK; in cifs_getlk()
[all …]
/linux/fs/dlm/
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/fs/nfsd/
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()
A Dnfs4state.c5682 fl->c.flc_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()
5874 fl->c.flc_type, &fl, NULL); in nfs4_set_delegation()
7668 if (fl->c.flc_type != F_RDLCK) in nfs4_set_lock_denied()
8057 file_lock->c.flc_type = type; in nfsd4_lock()
8226 file_lock->c.flc_type = F_RDLCK; in nfsd4_lockt()
8230 file_lock->c.flc_type = F_WRLCK; in nfsd4_lockt()
8253 if (file_lock->c.flc_type != F_UNLCK) { in nfsd4_lockt()
8309 file_lock->c.flc_type = F_UNLCK; in nfsd4_locku()
8905 if (fl->c.flc_type == F_WRLCK) { in nfsd4_deleg_getattr_conflict()
/linux/fs/smb/server/
A Dsmb2pdu.c7111 flock->c.flc_type = F_RDLCK; in smb2_set_flock_flags()
7117 flock->c.flc_type = F_WRLCK; in smb2_set_flock_flags()
7124 flock->c.flc_type = F_RDLCK; in smb2_set_flock_flags()
7130 flock->c.flc_type = F_WRLCK; in smb2_set_flock_flags()
7134 flock->c.flc_type = F_UNLCK; in smb2_set_flock_flags()
7269 if (cmp_lock->fl->c.flc_type != F_UNLCK && in smb2_lock()
7270 flock->c.flc_type != F_UNLCK) { in smb2_lock()
7506 rlock->c.flc_type = F_UNLCK; in smb2_lock()
/linux/fs/fuse/
A Dfile.c2631 fl->c.flc_type = ffl->type; in convert_fuse_file_lock()
2648 inarg->lk.type = fl->c.flc_type; in fuse_lk_fill()
2686 struct pid *pid = fl->c.flc_type != F_UNLCK ? task_tgid(current) : NULL; in fuse_setlk()
/linux/fs/gfs2/
A Dfile.c1499 request.c.flc_type = F_UNLCK; in do_flock()

Completed in 807 milliseconds

12