Home
last modified time | relevance | path

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

12

/linux/include/linux/
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);
H A Dnfs_xdr.h583 struct file_lock * fl;
604 struct file_lock * fl;
618 struct file_lock * fl;
624 struct file_lock * denied; /* LOCK, LOCKT failed */
1848 int (*lock)(struct file *, int, struct file_lock *);
1849 int (*lock_check_bounds)(const struct file_lock *);
/linux/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);
H A Docfs1_fs_compat.h64 __u8 file_lock; member
/linux/fs/lockd/
H A Dlockd.h170 struct file_lock *b_lock; /* local file lock */
259 struct file_lock *fl);
266 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
322 int lock_to_openmode(struct file_lock *);
336 void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
422 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
423 const struct file_lock *fl2) in nlm_compare_locks()
445 lockd_set_file_lock_range3(struct file_lock *fl, u32 off, u32 len) in lockd_set_file_lock_range3()
469 lockd_set_file_lock_range4(struct file_lock *fl, u64 off, u64 len) in lockd_set_file_lock_range4()
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()
162 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) in nlmclnt_proc()
432 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
465 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmclnt_locks_copy_lock()
474 static void nlmclnt_locks_release_private(struct file_lock *fl) in nlmclnt_locks_release_private()
[all …]
H A Dsvcsubs.c74 int lock_to_openmode(struct file_lock *lock) in lock_to_openmode()
245 static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl) in nlm_unlock_files()
247 struct file_lock lock; in nlm_unlock_files()
278 struct file_lock *fl; in nlm_traverse_locks()
333 struct file_lock *fl; in nlm_file_inuse()
H A Dsvclock.c114 struct file_lock *fl; in nlmsvc_lookup_block()
376 void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host, in nlmsvc_locks_init_private()
701 struct file_lock *fl = &block->b_call->a_args.lock.fl; in nlmsvc_cancel_blocked()
730 static int nlmsvc_grant_deferred(struct file_lock *fl, int result) in nlmsvc_grant_deferred()
769 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
956 struct file_lock *fl; in nlmsvc_grant_reply()
/linux/Documentation/filesystems/
H A Dfiles.rst11 with a lock (files->file_lock) and reference count (files->count).
12 ->file_lock protected accesses to all the file related fields
61 3. For any update to the fd table, files->file_lock must
89 holding files->file_lock. If ->file_lock is dropped, then
95 spin_lock(&files->file_lock);
102 spin_unlock(&files->file_lock);
105 Since locate_fd() can drop ->file_lock (and reacquire ->file_lock),
/linux/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()
75 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message()
229 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file()
248 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
318 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
387 struct file_lock *lock; in ceph_count_locks()
410 struct file_lock *lock, in lock_to_ceph_filelock()
450 struct file_lock *lock; in ceph_encode_locks_to_buffer()
/linux/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()
159 struct file_lock *p; in afs_kill_lockers_enoent()
165 struct file_lock, fl_u.afs.link); in afs_kill_lockers_enoent()
451 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk()
701 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 …]
/linux/fs/dlm/
H A Dplock.c28 struct file_lock flc;
29 int (*callback)(struct file_lock *fl, int result);
123 int cmd, struct file_lock *fl) in dlm_posix_lock()
242 struct file_lock *fl; in dlm_plock_callback()
243 struct file_lock *flc; in dlm_plock_callback()
244 int (*notify)(struct file_lock *fl, int result) = NULL; in dlm_plock_callback()
289 struct file_lock *fl) in dlm_posix_unlock()
360 struct file_lock *fl) in dlm_posix_cancel()
423 struct file_lock *fl) in dlm_posix_get()
/linux/include/linux/lockd/
H A Dbind.h13 struct file_lock;
81 extern int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data);
/linux/drivers/misc/genwqe/
H A Dcard_dev.c37 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_open_files()
39 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_open_files()
48 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_add_file()
50 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_add_file()
57 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_del_file()
59 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_del_file()
264 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_kill_fasync()
270 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_kill_fasync()
280 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_terminate()
285 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_terminate()
H A Dcard_base.h315 spinlock_t file_lock; /* lock for open files */ member
/linux/drivers/fsi/
H A Dfsi-sbefifo.c136 struct mutex file_lock; member
806 mutex_init(&user->file_lock); in sbefifo_user_open()
829 mutex_lock(&user->file_lock); in sbefifo_user_read()
864 mutex_unlock(&user->file_lock); in sbefifo_user_read()
883 mutex_lock(&user->file_lock); in sbefifo_user_write()
925 mutex_unlock(&user->file_lock); in sbefifo_user_write()
991 mutex_lock(&user->file_lock); in sbefifo_user_ioctl()
1000 mutex_unlock(&user->file_lock); in sbefifo_user_ioctl()
/linux/io_uring/
H A Dopenclose.c248 spin_lock(&files->file_lock); in io_close()
251 spin_unlock(&files->file_lock); in io_close()
257 spin_unlock(&files->file_lock); in io_close()
262 spin_unlock(&files->file_lock); in io_close()
/linux/fs/smb/client/
H A Dcifsfs.h112 int cifs_flock(struct file *file, int cmd, struct file_lock *fl);
113 int cifs_lock(struct file *file, int cmd, struct file_lock *flock);
H A Dfile.c1696 __u8 type, struct file_lock *flock) in cifs_lock_test()
1798 cifs_posix_lock_test(struct file *file, struct file_lock *flock) in cifs_posix_lock_test()
1827 cifs_posix_lock_set(struct file *file, struct file_lock *flock) in cifs_posix_lock_set()
1945 struct file_lock *flock; in cifs_push_posix_locks()
2063 cifs_read_flock(struct file_lock *flock, __u32 *type, int *lock, int *unlock, in cifs_read_flock()
2111 cifs_getlk(struct file *file, struct file_lock *flock, __u32 type, in cifs_getlk()
2225 cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in cifs_unlock_range()
2337 cifs_setlk(struct file *file, struct file_lock *flock, __u32 type, in cifs_setlk()
2431 int cifs_flock(struct file *file, int cmd, struct file_lock *fl) in cifs_flock()
2480 int cifs_lock(struct file *file, int cmd, struct file_lock *flock) in cifs_lock()
/linux/fs/nfsd/
H A Dnfs4state.c8665 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
8693 nfsd4_lm_lock_expirable(struct file_lock *cfl) in nfsd4_lm_lock_expirable()
8715 nfsd4_lm_notify(struct file_lock *fl) in nfsd4_lm_notify()
8749 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
9035 struct file_lock *file_lock = NULL; in nfsd4_lock() local
9036 struct file_lock *conflock = NULL; in nfsd4_lock()
9157 file_lock = &nbl->nbl_lock; in nfsd4_lock()
9158 file_lock->c.flc_type = type; in nfsd4_lock()
9159 file_lock->c.flc_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner)); in nfsd4_lock()
9160 file_lock->c.flc_pid = current->tgid; in nfsd4_lock()
[all …]
/linux/fs/gfs2/
H A Dfile.c1449 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock()
1494 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock()
1513 struct file_lock request; in do_flock()
1554 static void do_unflock(struct file *file, struct file_lock *fl) in do_unflock()
1577 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) in gfs2_flock()
/linux/fs/smb/server/
H A Dvfs_cache.h39 struct file_lock *fl;
H A Dsmb2pdu.h414 struct file_lock *smb_flock_init(struct file *f);
/linux/fs/nfs/
H A Dnfs4state.c921 static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in nfs4_fl_copy_lock()
929 static void nfs4_fl_release_lock(struct file_lock *fl) in nfs4_fl_release_lock()
939 int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl) in nfs4_set_lock_state()
1459 struct file_lock *fl; in nfs4_reclaim_locks()

12