Home
last modified time | relevance | path

Searched refs:file_lock (Results 1 - 25 of 151) sorted by relevance

1234567

/kernel/linux/linux-6.6/include/linux/
H A Dfilelock.h29 struct file_lock;
32 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
33 void (*fl_release_private)(struct file_lock *);
40 void (*lm_notify)(struct file_lock *); /* unblock callback */
41 int (*lm_grant)(struct file_lock *, int);
42 bool (*lm_break)(struct file_lock *);
43 int (*lm_change)(struct file_lock *, int, struct list_head *);
44 void (*lm_setup)(struct file_lock *, void **);
45 bool (*lm_breaker_owns_lease)(struct file_lock *);
88 struct file_lock { global() struct
[all...]
H A Ddlm_plock.h11 int cmd, struct file_lock *fl);
13 struct file_lock *fl);
15 struct file_lock *fl);
17 struct file_lock *fl);
/kernel/linux/linux-6.6/fs/
H A Dlocks.c79 static bool lease_breaking(struct file_lock *fl) in lease_breaking()
84 static int target_leasetype(struct file_lock *fl) in target_leasetype()
160 * fl->fl_blocker pointer for file_lock structures that are acting as lock
208 struct file_lock *fl; in locks_dump_ctx_list()
236 struct file_lock *fl; in locks_check_ctx_file_list()
259 static void locks_init_lock_heads(struct file_lock *fl) in locks_init_lock_heads()
269 struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
271 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); in locks_alloc_lock()
280 void locks_release_private(struct file_lock *fl) in locks_release_private()
316 struct file_lock *f in locks_owner_has_blockers()
2338 struct file_lock *file_lock = locks_alloc_lock(); fcntl_setlk() local
2462 struct file_lock *file_lock = locks_alloc_lock(); fcntl_setlk64() local
[all...]
H A Dfile.c167 * The files->file_lock should be held on entry, and will be held on exit.
170 __releases(files->file_lock)
171 __acquires(files->file_lock)
175 spin_unlock(&files->file_lock);
184 spin_lock(&files->file_lock);
212 * The files->file_lock should be held on entry, and will be held on exit.
215 __releases(files->file_lock)
216 __acquires(files->file_lock)
233 spin_unlock(&files->file_lock);
236 spin_lock(&files->file_lock);
[all...]
/kernel/linux/linux-5.10/fs/
H A Dlocks.c183 static bool lease_breaking(struct file_lock *fl) in lease_breaking()
188 static int target_leasetype(struct file_lock *fl) in target_leasetype()
235 * fl->fl_blocker pointer for file_lock structures that are acting as lock
283 struct file_lock *fl; in locks_dump_ctx_list()
311 struct file_lock *fl; in locks_check_ctx_file_list()
334 static void locks_init_lock_heads(struct file_lock *fl) in locks_init_lock_heads()
344 struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
346 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); in locks_alloc_lock()
355 void locks_release_private(struct file_lock *fl) in locks_release_private()
380 void locks_free_lock(struct file_lock *f
2479 struct file_lock *file_lock = locks_alloc_lock(); fcntl_setlk() local
2610 struct file_lock *file_lock = locks_alloc_lock(); fcntl_setlk64() local
[all...]
H A Dfile.c167 * The files->file_lock should be held on entry, and will be held on exit.
170 __releases(files->file_lock)
171 __acquires(files->file_lock)
175 spin_unlock(&files->file_lock);
184 spin_lock(&files->file_lock);
212 * The files->file_lock should be held on entry, and will be held on exit.
215 __releases(files->file_lock)
216 __acquires(files->file_lock)
233 spin_unlock(&files->file_lock);
236 spin_lock(&files->file_lock);
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A 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_blocker)
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_blocke
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A 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_blocker)
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_blocke
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Ddlm_plock.h11 int cmd, struct file_lock *fl);
13 struct file_lock *fl);
15 struct file_lock *fl);
H A Dfs.h1012 struct file_lock;
1015 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1016 void (*fl_release_private)(struct file_lock *);
1022 void (*lm_notify)(struct file_lock *); /* unblock callback */
1023 int (*lm_grant)(struct file_lock *, int);
1024 bool (*lm_break)(struct file_lock *);
1025 int (*lm_change)(struct file_lock *, int, struct list_head *);
1026 void (*lm_setup)(struct file_lock *, void **);
1027 bool (*lm_breaker_owns_lease)(struct file_lock *);
1065 struct file_lock { global() struct
[all...]
H A Dfdtable.h62 spinlock_t file_lock ____cacheline_aligned_in_smp;
75 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
96 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked()
104 !lockdep_is_held(&files->file_lock), in fcheck_files()
/kernel/linux/linux-5.10/fs/ocfs2/
H A Dlocks.c25 int cmd, struct file_lock *fl) in ocfs2_do_flock()
41 struct file_lock request; in ocfs2_do_flock()
83 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
99 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
119 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock()
H A Dlocks.h15 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl);
16 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl);
/kernel/linux/linux-6.6/fs/ocfs2/
H A Dlocks.c24 int cmd, struct file_lock *fl) in ocfs2_do_flock()
40 struct file_lock request; in ocfs2_do_flock()
82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
98 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
116 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock()
H A Dlocks.h13 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl);
14 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl);
/kernel/linux/linux-5.10/fs/lockd/
H A Dclntproc.c27 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
28 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
29 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
31 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
32 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
126 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs()
158 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) in nlmclnt_proc()
428 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
457 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *f
[all...]
H A Dclntlock.c39 struct file_lock * b_lock; /* local file lock */
100 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block()
166 const struct file_lock *fl = &lock->fl; in nlmclnt_grant()
177 struct file_lock *fl_blocked = block->b_lock; in nlmclnt_grant()
234 struct file_lock *fl, *next; in reclaimer()
/kernel/linux/linux-6.6/fs/lockd/
H A Dclntproc.c30 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
31 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
32 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
34 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
35 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
129 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs()
161 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) in nlmclnt_proc()
431 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
463 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *f
[all...]
/kernel/linux/linux-5.10/fs/ceph/
H A 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()
71 * handling request reply and adding file_lock struct to in ceph_lock_message()
209 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file()
228 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
294 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
357 struct file_lock *lock; in ceph_count_locks()
379 static int lock_to_ceph_filelock(struct file_lock *loc
[all...]
/kernel/linux/linux-6.6/fs/ceph/
H A Dlocks.c34 static void ceph_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in ceph_fl_copy_lock()
45 static void ceph_fl_release_lock(struct file_lock *fl) in ceph_fl_release_lock()
51 * If inode is NULL it should be a request file_lock, in ceph_fl_release_lock()
77 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message()
88 * handling request reply and adding file_lock struct to in ceph_lock_message()
226 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file()
245 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
311 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
374 struct file_lock *loc in ceph_count_locks()
[all...]
/kernel/linux/linux-6.6/include/linux/lockd/
H A Dlockd.h131 struct file_lock *b_lock; /* local file lock */
217 struct file_lock *fl);
224 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
276 int lock_to_openmode(struct file_lock *);
290 void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
375 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
376 const struct file_lock *fl2) in nlm_compare_locks()
/kernel/linux/linux-5.10/fs/afs/
H A Dflock.c17 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl);
18 static void afs_fl_release_private(struct file_lock *fl);
92 struct file_lock *p, *_p; in afs_grant_locks()
113 struct file_lock *p, *_p, *next = NULL; in afs_next_locker()
160 struct file_lock *p; in afs_kill_lockers_enoent()
166 struct file_lock, fl_u.afs.link); in afs_kill_lockers_enoent()
452 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk()
702 static int afs_do_unlk(struct file *file, struct file_lock *fl) in afs_do_unlk()
722 static int afs_do_getlk(struct file *file, struct file_lock *f
[all...]
/kernel/linux/linux-6.6/fs/afs/
H A Dflock.c17 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl);
18 static void afs_fl_release_private(struct file_lock *fl);
92 struct file_lock *p, *_p; in afs_grant_locks()
113 struct file_lock *p, *_p, *next = NULL; in afs_next_locker()
160 struct file_lock *p; in afs_kill_lockers_enoent()
166 struct file_lock, fl_u.afs.link); in afs_kill_lockers_enoent()
452 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk()
702 static int afs_do_unlk(struct file *file, struct file_lock *fl) in afs_do_unlk()
722 static int afs_do_getlk(struct file *file, struct file_lock *f
[all...]
/kernel/linux/linux-6.6/io_uring/
H A Dopenclose.c232 spin_lock(&files->file_lock); in io_close()
235 spin_unlock(&files->file_lock); in io_close()
239 lockdep_is_held(&files->file_lock)); in io_close()
241 spin_unlock(&files->file_lock); in io_close()
247 spin_unlock(&files->file_lock); in io_close()
252 spin_unlock(&files->file_lock); in io_close()
/kernel/linux/linux-5.10/fs/dlm/
H A Dplock.c25 struct file_lock flc;
26 int (*callback)(struct file_lock *fl, int result);
104 int cmd, struct file_lock *fl) in dlm_posix_lock()
199 struct file_lock *fl; in dlm_plock_callback()
200 struct file_lock *flc; in dlm_plock_callback()
201 int (*notify)(struct file_lock *fl, int result) = NULL; in dlm_plock_callback()
252 struct file_lock *fl) in dlm_posix_unlock()
326 struct file_lock *fl) in dlm_posix_get()

Completed in 25 milliseconds

1234567