Home
last modified time | relevance | path

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

12

/fs/
Dlocks.c149 static struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
154 static void locks_release_private(struct file_lock *fl) in locks_release_private()
170 static void locks_free_lock(struct file_lock *fl) in locks_free_lock()
180 void locks_init_lock(struct file_lock *fl) in locks_init_lock()
206 struct file_lock *lock = (struct file_lock *) foo; in init_once()
211 static void locks_copy_private(struct file_lock *new, struct file_lock *fl) in locks_copy_private()
228 void __locks_copy_lock(struct file_lock *new, const struct file_lock *fl) in __locks_copy_lock()
242 void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
271 static int flock_make_lock(struct file *filp, struct file_lock **lock, in flock_make_lock()
274 struct file_lock *fl; in flock_make_lock()
[all …]
Dfile.c201 __releases(files->file_lock) in expand_fdtable()
202 __acquires(files->file_lock) in expand_fdtable()
206 spin_unlock(&files->file_lock); in expand_fdtable()
208 spin_lock(&files->file_lock); in expand_fdtable()
307 spin_lock_init(&newf->file_lock); in dup_fd()
317 spin_lock(&oldf->file_lock); in dup_fd()
325 spin_unlock(&oldf->file_lock); in dup_fd()
353 spin_lock(&oldf->file_lock); in dup_fd()
381 spin_unlock(&oldf->file_lock); in dup_fd()
434 .file_lock = __SPIN_LOCK_UNLOCKED(init_task.file_lock),
[all …]
Dfcntl.c32 spin_lock(&files->file_lock); in set_close_on_exec()
38 spin_unlock(&files->file_lock); in set_close_on_exec()
66 spin_lock(&files->file_lock); in SYSCALL_DEFINE3()
102 spin_unlock(&files->file_lock); in SYSCALL_DEFINE3()
112 spin_unlock(&files->file_lock); in SYSCALL_DEFINE3()
Dopen.c994 spin_lock(&files->file_lock); in put_unused_fd()
996 spin_unlock(&files->file_lock); in put_unused_fd()
1018 spin_lock(&files->file_lock); in fd_install()
1022 spin_unlock(&files->file_lock); in fd_install()
1125 spin_lock(&files->file_lock); in SYSCALL_DEFINE1()
1135 spin_unlock(&files->file_lock); in SYSCALL_DEFINE1()
1148 spin_unlock(&files->file_lock); in SYSCALL_DEFINE1()
Dbad_inode.c112 static int bad_file_lock(struct file *file, int cmd, struct file_lock *fl) in bad_file_lock()
135 static int bad_file_flock(struct file *filp, int cmd, struct file_lock *fl) in bad_file_flock()
/fs/afs/
Dflock.c18 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl);
19 static void afs_fl_release_private(struct file_lock *fl);
84 static void afs_grant_locks(struct afs_vnode *vnode, struct file_lock *fl) in afs_grant_locks()
86 struct file_lock *p, *_p; in afs_grant_locks()
111 struct file_lock *fl; in afs_lock_work()
146 struct file_lock, fl_u.afs.link); in afs_lock_work()
180 struct file_lock, fl_u.afs.link); in afs_lock_work()
204 struct file_lock, fl_u.afs.link) == fl) { in afs_lock_work()
254 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk()
442 static int afs_do_unlk(struct file *file, struct file_lock *fl) in afs_do_unlk()
[all …]
/fs/lockd/
Dclntproc.c25 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
26 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
27 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
29 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
30 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
123 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs()
154 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl) in nlmclnt_proc()
417 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
446 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmclnt_locks_copy_lock()
453 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 */
89 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block()
196 const struct file_lock *fl = &lock->fl; in nlmclnt_grant()
206 struct file_lock *fl_blocked = block->b_lock; in nlmclnt_grant()
261 struct file_lock *fl, *next; in reclaimer()
Dsvclock.c108 struct file_lock *fl; in nlmsvc_lookup_block()
484 struct file_lock *conf = kzalloc(sizeof(*conf), GFP_KERNEL); in nlmsvc_testlock()
628 nlmsvc_update_deferred_block(struct nlm_block *block, struct file_lock *conf, in nlmsvc_update_deferred_block()
642 static int nlmsvc_grant_deferred(struct file_lock *fl, struct file_lock *conf, in nlmsvc_grant_deferred()
682 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
698 static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2) in nlmsvc_same_owner()
Dsvcsubs.c167 struct file_lock *fl; in nlm_traverse_locks()
181 struct file_lock lock = *fl; in nlm_traverse_locks()
223 struct file_lock *fl; in nlm_file_inuse()
Dxdr.c123 struct file_lock *fl = &lock->fl; in nlm_decode_lock()
158 struct file_lock *fl = &lock->fl; in nlm_encode_lock()
196 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
409 struct file_lock *fl = &resp->lock.fl; in nlmclt_decode_testres()
Dxdr4.c124 struct file_lock *fl = &lock->fl; in nlm4_decode_lock()
159 struct file_lock *fl = &lock->fl; in nlm4_encode_lock()
199 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres()
416 struct file_lock *fl = &resp->lock.fl; in nlm4clt_decode_testres()
/fs/ocfs2/
Dlocks.c40 int cmd, struct file_lock *fl) in ocfs2_do_flock()
71 &(struct file_lock){.fl_type = F_UNLCK}); in ocfs2_do_flock()
93 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
109 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
129 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;
202 struct file_lock *fl);
260 struct file *file, int cmd, struct file_lock *fl);
Docfs1_fs_compat.h79 __u8 file_lock; member
/fs/nfsd/
Dnfs4state.c1299 void nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb()
1348 void nfsd_release_deleg_cb(struct file_lock *fl) in nfsd_release_deleg_cb()
1365 void nfsd_copy_lock_deleg_cb(struct file_lock *new, struct file_lock *fl) in nfsd_copy_lock_deleg_cb()
1379 int nfsd_same_client_deleg_cb(struct file_lock *onlist, struct file_lock *try) in nfsd_same_client_deleg_cb()
1394 int nfsd_change_deleg_cb(struct file_lock **onlist, int arg) in nfsd_change_deleg_cb()
1638 struct file_lock fl, *flp = &fl; in nfs4_open_delegation()
2511 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
2525 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
2655 struct file_lock file_lock; in nfsd4_lock() local
2656 struct file_lock conflock; in nfsd4_lock()
[all …]
/fs/nfs/
Dfile.c55 static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl);
56 static int nfs_flock(struct file *filp, int cmd, struct file_lock *fl);
57 static int nfs_setlease(struct file *file, long arg, struct file_lock **fl);
553 static int do_getlk(struct file *filp, int cmd, struct file_lock *fl) in do_getlk()
581 static int do_vfs_lock(struct file *file, struct file_lock *fl) in do_vfs_lock()
601 static int do_unlk(struct file *filp, int cmd, struct file_lock *fl) in do_unlk()
626 static int do_setlk(struct file *filp, int cmd, struct file_lock *fl) in do_setlk()
662 static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
698 static int nfs_flock(struct file *filp, int cmd, struct file_lock *fl) in nfs_flock()
722 static int nfs_setlease(struct file *file, long arg, struct file_lock **fl) in nfs_setlease()
Dnfs4_fs.h179 int (*recover_lock)(struct nfs4_state *, struct file_lock *);
232 extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl);
Ddelegation.h53 int nfs4_lock_delegation_recall(struct nfs4_state *state, struct file_lock *fl);
Dnfs4proc.c3102 static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in _nfs4_proc_getlk()
3142 static int nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_getlk()
3155 static int do_vfs_lock(struct file *file, struct file_lock *fl) in do_vfs_lock()
3176 struct file_lock fl;
3181 static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl, in nfs4_alloc_unlockdata()
3260 static struct rpc_task *nfs4_do_unlck(struct file_lock *fl, in nfs4_do_unlck()
3295 static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_unlck()
3339 struct file_lock fl;
3345 static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, in nfs4_alloc_lockdata()
3454 static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int reclaim) in _nfs4_do_setlk()
[all …]
/fs/gfs2/
Dops_file.c572 static int gfs2_setlease(struct file *file, long arg, struct file_lock **fl) in gfs2_setlease()
587 struct file *file, struct file_lock *fl) in gfs2_lm_plock_get()
597 struct file *file, int cmd, struct file_lock *fl) in gfs2_lm_plock()
607 struct file *file, struct file_lock *fl) in gfs2_lm_punlock()
625 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock()
651 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock()
671 &(struct file_lock){.fl_type = F_UNLCK}); in do_flock()
697 static void do_unflock(struct file *file, struct file_lock *fl) in do_unflock()
718 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) in gfs2_flock()
/fs/dlm/
Dplock.c35 struct file_lock flc;
74 int cmd, struct file_lock *fl) in dlm_posix_lock()
150 struct file_lock *fl; in dlm_plock_callback()
151 struct file_lock *flc; in dlm_plock_callback()
204 struct file_lock *fl) in dlm_posix_unlock()
259 struct file_lock *fl) in dlm_posix_get()
/fs/gfs2/locking/dlm/
Dmount.c237 struct file *file, int cmd, struct file_lock *fl) in gdlm_plock()
244 struct file *file, struct file_lock *fl) in gdlm_punlock()
251 struct file *file, struct file_lock *fl) in gdlm_plock_get()
/fs/cifs/
Dcifsfs.h72 extern int cifs_lock(struct file *, int, struct file_lock *);

12