Home
last modified time | relevance | path

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

123

/fs/
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()
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 *fl) in locks_free_lock()
390 struct file_lock *fl; in locks_dispose_list()
[all …]
Dfile.c170 __releases(files->file_lock) in expand_fdtable()
171 __acquires(files->file_lock) in expand_fdtable()
175 spin_unlock(&files->file_lock); in expand_fdtable()
184 spin_lock(&files->file_lock); in expand_fdtable()
215 __releases(files->file_lock) in expand_files()
216 __acquires(files->file_lock) in expand_files()
233 spin_unlock(&files->file_lock); in expand_files()
236 spin_lock(&files->file_lock); in expand_files()
330 spin_lock_init(&newf->file_lock); in dup_fd()
341 spin_lock(&oldf->file_lock); in dup_fd()
[all …]
/fs/lockd/
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 *fl) in nlmclnt_locks_copy_lock()
466 static void nlmclnt_locks_release_private(struct file_lock *fl) in nlmclnt_locks_release_private()
[all …]
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()
Dsvcsubs.c167 struct file_lock *fl; in nlm_traverse_locks()
185 struct file_lock lock = *fl; in nlm_traverse_locks()
229 struct file_lock *fl; in nlm_file_inuse()
Dsvclock.c148 struct file_lock *fl; in nlmsvc_lookup_block()
398 void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host, in nlmsvc_locks_init_private()
716 static int nlmsvc_grant_deferred(struct file_lock *fl, int result) in nlmsvc_grant_deferred()
755 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
Dxdr.c117 struct file_lock *fl = &lock->fl; in nlm_decode_lock()
157 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
Dxdr4.c109 struct file_lock *fl = &lock->fl; in nlm4_decode_lock()
150 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres()
Dclnt4xdr.c68 const struct file_lock *fl = &lock->fl; in nlm4_compute_offsets()
259 struct file_lock *fl = &lock->fl; in decode_nlm4_holder()
Dclntxdr.c64 const struct file_lock *fl = &lock->fl; in nlm_compute_offsets()
254 struct file_lock *fl = &lock->fl; in decode_nlm_holder()
/fs/ocfs2/
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()
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);
Dstackglue.h25 struct file_lock;
212 struct file_lock *fl);
284 struct file *file, int cmd, struct file_lock *fl);
Docfs1_fs_compat.h66 __u8 file_lock; member
/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()
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 *lock, in lock_to_ceph_filelock()
416 struct file_lock *lock; in ceph_encode_locks_to_buffer()
/fs/afs/
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 *fl) in afs_do_getlk()
764 int afs_lock(struct file *file, int cmd, struct file_lock *fl) in afs_lock()
[all …]
/fs/dlm/
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()
/fs/nfsd/
Dnfs4state.c4605 nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb()
4635 static bool nfsd_breaker_owns_lease(struct file_lock *fl) in nfsd_breaker_owns_lease()
4652 nfsd_change_deleg_cb(struct file_lock *onlist, int arg, in nfsd_change_deleg_cb()
4977 static struct file_lock *nfs4_alloc_init_lease(struct nfs4_delegation *dp, in nfs4_alloc_init_lease()
4980 struct file_lock *fl; in nfs4_alloc_init_lease()
5002 struct file_lock *fl; in nfs4_set_delegation()
6355 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
6382 nfsd4_lm_notify(struct file_lock *fl) in nfsd4_lm_notify()
6411 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
6694 struct file_lock *file_lock = NULL; in nfsd4_lock() local
[all …]
Dnfs4layouts.c184 struct file_lock *fl; in nfsd4_layout_setlease()
725 nfsd4_layout_lm_break(struct file_lock *fl) in nfsd4_layout_lm_break()
738 nfsd4_layout_lm_change(struct file_lock *onlist, int arg, in nfsd4_layout_lm_change()
/fs/proc/
Dfd.c38 spin_lock(&files->file_lock); in seq_show()
50 spin_unlock(&files->file_lock); in seq_show()
187 spin_lock(&files->file_lock); in proc_fd_link()
194 spin_unlock(&files->file_lock); in proc_fd_link()
/fs/9p/
Dvfs_file.c116 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock()
135 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock()
241 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock()
306 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl()
342 struct file_lock *fl) in v9fs_file_flock_dotl()
/fs/nfs/
Dfile.c680 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk()
709 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk()
745 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk()
789 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
828 int nfs_flock(struct file *filp, int cmd, struct file_lock *fl) in nfs_flock()
Ddelegation.h71 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid …
/fs/cifs/
Dcifsfs.h111 extern int cifs_flock(struct file *pfile, int cmd, struct file_lock *plock);
112 extern int cifs_lock(struct file *, int, struct file_lock *);
/fs/gfs2/
Dfile.c1244 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock()
1273 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock()
1290 struct file_lock request; in do_flock()
1329 static void do_unflock(struct file *file, struct file_lock *fl) in do_unflock()
1352 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) in gfs2_flock()

123