Home
last modified time | relevance | path

Searched refs:file_lock (Results 1 – 25 of 63) sorted by relevance

123

/linux-4.19.296/fs/
Dlocks.c142 static bool lease_breaking(struct file_lock *fl) in lease_breaking()
147 static int target_leasetype(struct file_lock *fl) in target_leasetype()
241 struct file_lock *fl; in locks_dump_ctx_list()
269 struct file_lock *fl; in locks_check_ctx_file_list()
292 static void locks_init_lock_heads(struct file_lock *fl) in locks_init_lock_heads()
301 struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
303 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); in locks_alloc_lock()
312 void locks_release_private(struct file_lock *fl) in locks_release_private()
331 void locks_free_lock(struct file_lock *fl) in locks_free_lock()
346 struct file_lock *fl; in locks_dispose_list()
[all …]
Dfile.c149 __releases(files->file_lock) in expand_fdtable()
150 __acquires(files->file_lock) in expand_fdtable()
154 spin_unlock(&files->file_lock); in expand_fdtable()
163 spin_lock(&files->file_lock); in expand_fdtable()
194 __releases(files->file_lock) in expand_files()
195 __acquires(files->file_lock) in expand_files()
212 spin_unlock(&files->file_lock); in expand_files()
215 spin_lock(&files->file_lock); in expand_files()
286 spin_lock_init(&newf->file_lock); in dup_fd()
297 spin_lock(&oldf->file_lock); in dup_fd()
[all …]
/linux-4.19.296/include/trace/events/
Dfilelock.h63 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
68 __field(struct file_lock *, fl)
71 __field(struct file_lock *, fl_next)
104 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
108 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
112 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
116 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
120 TP_PROTO(struct inode *inode, struct file_lock *fl),
125 __field(struct file_lock *, fl)
128 __field(struct file_lock *, fl_next)
[all …]
/linux-4.19.296/fs/ocfs2/
Dlocks.c39 int cmd, struct file_lock *fl) in ocfs2_do_flock()
70 &(struct file_lock) { in ocfs2_do_flock()
97 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
113 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
133 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock()
Dlocks.h29 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl);
30 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl);
Dstackglue.h33 struct file_lock;
220 struct file_lock *fl);
292 struct file *file, int cmd, struct file_lock *fl);
Docfs1_fs_compat.h79 __u8 file_lock; member
/linux-4.19.296/include/linux/
Ddlm_plock.h14 int cmd, struct file_lock *fl);
16 struct file_lock *fl);
18 struct file_lock *fl);
Dfs.h985 struct file_lock;
988 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
989 void (*fl_release_private)(struct file_lock *);
993 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
994 unsigned long (*lm_owner_key)(struct file_lock *);
997 void (*lm_notify)(struct file_lock *); /* unblock callback */
998 int (*lm_grant)(struct file_lock *, int);
999 bool (*lm_break)(struct file_lock *);
1000 int (*lm_change)(struct file_lock *, int, struct list_head *);
1001 void (*lm_setup)(struct file_lock *, void **);
[all …]
Dfdtable.h61 spinlock_t file_lock ____cacheline_aligned_in_smp;
74 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
96 !lockdep_is_held(&files->file_lock), in fcheck_files()
/linux-4.19.296/fs/lockd/
Dclntproc.c26 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
27 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
28 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
30 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
31 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
124 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs()
156 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) in nlmclnt_proc()
426 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
455 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmclnt_locks_copy_lock()
464 static void nlmclnt_locks_release_private(struct file_lock *fl) in nlmclnt_locks_release_private()
[all …]
Dclntlock.c38 struct file_lock * b_lock; /* local file lock */
99 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block()
165 const struct file_lock *fl = &lock->fl; in nlmclnt_grant()
176 struct file_lock *fl_blocked = block->b_lock; in nlmclnt_grant()
233 struct file_lock *fl, *next; in reclaimer()
Dsvcsubs.c166 struct file_lock *fl; in nlm_traverse_locks()
184 struct file_lock lock = *fl; in nlm_traverse_locks()
228 struct file_lock *fl; in nlm_file_inuse()
Dsvclock.c148 struct file_lock *fl; in nlmsvc_lookup_block()
638 static int nlmsvc_grant_deferred(struct file_lock *fl, int result) in nlmsvc_grant_deferred()
677 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
695 static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2) in nlmsvc_same_owner()
706 nlmsvc_owner_key(struct file_lock *fl) in nlmsvc_owner_key()
/linux-4.19.296/fs/afs/
Dflock.c21 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl);
22 static void afs_fl_release_private(struct file_lock *fl);
65 struct file_lock *p, *_p; in afs_grant_locks()
85 struct file_lock *p, *_p, *next = NULL; in afs_next_locker()
375 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk()
569 static int afs_do_unlk(struct file *file, struct file_lock *fl) in afs_do_unlk()
587 static int afs_do_getlk(struct file *file, struct file_lock *fl) in afs_do_getlk()
626 int afs_lock(struct file *file, int cmd, struct file_lock *fl) in afs_lock()
649 int afs_flock(struct file *file, int cmd, struct file_lock *fl) in afs_flock()
679 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl) in afs_fl_copy_lock()
[all …]
/linux-4.19.296/fs/ceph/
Dlocks.c33 static void ceph_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in ceph_fl_copy_lock()
39 static void ceph_fl_release_lock(struct file_lock *fl) in ceph_fl_release_lock()
60 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message()
213 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
282 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
343 struct file_lock *lock; in ceph_count_locks()
365 static int lock_to_ceph_filelock(struct file_lock *lock, in lock_to_ceph_filelock()
402 struct file_lock *lock; in ceph_encode_locks_to_buffer()
/linux-4.19.296/fs/dlm/
Dplock.c28 struct file_lock flc;
29 int (*callback)(struct file_lock *fl, int result);
107 int cmd, struct file_lock *fl) in dlm_posix_lock()
202 struct file_lock *fl; in dlm_plock_callback()
203 struct file_lock *flc; in dlm_plock_callback()
204 int (*notify)(struct file_lock *fl, int result) = NULL; in dlm_plock_callback()
255 struct file_lock *fl) in dlm_posix_unlock()
329 struct file_lock *fl) in dlm_posix_get()
/linux-4.19.296/include/linux/lockd/
Dlockd.h213 struct nlm_wait * nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl);
219 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
359 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
360 const struct file_lock *fl2) in nlm_compare_locks()
Dbind.h77 extern int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data);
/linux-4.19.296/fs/proc/
Dfd.c37 spin_lock(&files->file_lock); in seq_show()
49 spin_unlock(&files->file_lock); in seq_show()
163 spin_lock(&files->file_lock); in proc_fd_link()
170 spin_unlock(&files->file_lock); in proc_fd_link()
/linux-4.19.296/drivers/misc/genwqe/
Dcard_dev.c45 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_open_files()
47 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_open_files()
56 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_add_file()
58 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_add_file()
65 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_del_file()
67 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_del_file()
269 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_kill_fasync()
275 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_kill_fasync()
285 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_terminate()
290 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_terminate()
/linux-4.19.296/fs/nfsd/
Dnfs4state.c3984 nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb()
4005 nfsd_change_deleg_cb(struct file_lock *onlist, int arg, in nfsd_change_deleg_cb()
4323 static struct file_lock *nfs4_alloc_init_lease(struct nfs4_delegation *dp, in nfs4_alloc_init_lease()
4326 struct file_lock *fl; in nfs4_alloc_init_lease()
4348 struct file_lock *fl; in nfs4_set_delegation()
5617 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
5644 nfsd4_lm_notify(struct file_lock *fl) in nfsd4_lm_notify()
5673 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
5957 struct file_lock *file_lock = NULL; in nfsd4_lock() local
5958 struct file_lock *conflock = NULL; in nfsd4_lock()
[all …]
/linux-4.19.296/fs/9p/
Dvfs_file.c131 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock()
150 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock()
256 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock()
321 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl()
357 struct file_lock *fl) in v9fs_file_flock_dotl()
/linux-4.19.296/fs/nfs/
Dfile.c661 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk()
690 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk()
726 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk()
770 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
809 int nfs_flock(struct file *filp, int cmd, struct file_lock *fl) in nfs_flock()
/linux-4.19.296/drivers/fsi/
Dfsi-sbefifo.c131 struct mutex file_lock; member
783 mutex_init(&user->file_lock); in sbefifo_user_open()
804 mutex_lock(&user->file_lock); in sbefifo_user_read()
833 mutex_unlock(&user->file_lock); in sbefifo_user_read()
852 mutex_lock(&user->file_lock); in sbefifo_user_write()
892 mutex_unlock(&user->file_lock); in sbefifo_user_write()

123