Home
last modified time | relevance | path

Searched refs:file_lock (Results 1 – 25 of 48) 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.h575 struct file_lock * fl;
597 struct file_lock * fl;
611 struct file_lock * fl;
617 struct file_lock * denied; /* LOCK, LOCKT failed */
1842 int (*lock)(struct file *, int, struct file_lock *);
1843 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.h162 struct file_lock *b_lock; /* local file lock */
251 struct file_lock *fl);
258 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
314 int lock_to_openmode(struct file_lock *);
328 void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
414 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
415 const struct file_lock *fl2) in nlm_compare_locks()
438 lockd_set_file_lock_range4(struct file_lock *fl, u64 off, u64 len) in lockd_set_file_lock_range4()
H A Dsvcsubs.c75 int lock_to_openmode(struct file_lock *lock) in lock_to_openmode()
206 static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl) in nlm_unlock_files()
208 struct file_lock lock; in nlm_unlock_files()
239 struct file_lock *fl; in nlm_traverse_locks()
294 struct file_lock *fl; in nlm_file_inuse()
H A Dsvclock.c148 struct file_lock *fl; in nlmsvc_lookup_block()
408 void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host, in nlmsvc_locks_init_private()
733 struct file_lock *fl = &block->b_call->a_args.lock.fl; in nlmsvc_cancel_blocked()
762 static int nlmsvc_grant_deferred(struct file_lock *fl, int result) in nlmsvc_grant_deferred()
801 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
988 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()
77 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message()
231 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file()
250 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
317 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
383 struct file_lock *lock; in ceph_count_locks()
406 struct file_lock *lock, in lock_to_ceph_filelock()
446 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/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/nfsd/
H A Dnfs4state.c7956 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
7984 nfsd4_lm_lock_expirable(struct file_lock *cfl) in nfsd4_lm_lock_expirable()
8006 nfsd4_lm_notify(struct file_lock *fl) in nfsd4_lm_notify()
8040 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
8323 struct file_lock *file_lock = NULL; in nfsd4_lock() local
8324 struct file_lock *conflock = NULL; in nfsd4_lock()
8441 file_lock = &nbl->nbl_lock; in nfsd4_lock()
8442 file_lock->c.flc_type = type; in nfsd4_lock()
8443 file_lock->c.flc_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner)); in nfsd4_lock()
8444 file_lock->c.flc_pid = current->tgid; in nfsd4_lock()
[all …]
/linux/fs/gfs2/
H A Dfile.c1440 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock()
1485 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock()
1504 struct file_lock request; in do_flock()
1545 static void do_unflock(struct file *file, struct file_lock *fl) in do_unflock()
1568 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) in gfs2_flock()
/linux/fs/smb/server/
H A Dvfs_cache.h33 struct file_lock *fl;
H A Dsmb2pdu.h340 struct file_lock *smb_flock_init(struct file *f);
/linux/fs/smb/client/
H A Dfile.c1678 __u8 type, struct file_lock *flock) in cifs_lock_test()
1780 cifs_posix_lock_test(struct file *file, struct file_lock *flock) in cifs_posix_lock_test()
1809 cifs_posix_lock_set(struct file *file, struct file_lock *flock) in cifs_posix_lock_set()
1927 struct file_lock *flock; in cifs_push_posix_locks()
2045 cifs_read_flock(struct file_lock *flock, __u32 *type, int *lock, int *unlock, in cifs_read_flock()
2093 cifs_getlk(struct file *file, struct file_lock *flock, __u32 type, in cifs_getlk()
2207 cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in cifs_unlock_range()
2319 cifs_setlk(struct file *file, struct file_lock *flock, __u32 type, in cifs_setlk()
2413 int cifs_flock(struct file *file, int cmd, struct file_lock *fl) in cifs_flock()
2462 int cifs_lock(struct file *file, int cmd, struct file_lock *flock) in cifs_lock()
/linux/fs/nfs/
H A Dnfs4state.c895 static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in nfs4_fl_copy_lock()
903 static void nfs4_fl_release_lock(struct file_lock *fl) in nfs4_fl_release_lock()
913 int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl) in nfs4_set_lock_state()
1433 struct file_lock *fl; in nfs4_reclaim_locks()
H A Dwrite.c1237 is_whole_file_wrlock(struct file_lock *fl) in is_whole_file_wrlock()
1256 struct file_lock *fl; in nfs_can_extend_write()
1276 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
1281 fl = list_first_entry(&flctx->flc_flock, struct file_lock, in nfs_can_extend_write()
H A Dinternal.h434 int nfs_lock(struct file *, int, struct file_lock *);
435 int nfs_flock(struct file *, int, struct file_lock *);
H A Dnfs4proc.c2293 …rver *server, struct nfs4_state *state, const nfs4_stateid *stateid, struct file_lock *fl, int err) in nfs4_handle_delegation_recall_error()
6922 static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in _nfs4_proc_getlk()
6964 static int nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_getlk()
7022 struct file_lock fl;
7028 static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl, in nfs4_alloc_unlockdata()
7154 static struct rpc_task *nfs4_do_unlck(struct file_lock *fl, in nfs4_do_unlck()
7199 static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_unlck()
7256 struct file_lock fl;
7263 static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, in nfs4_alloc_lockdata()
7438 static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_typ… in _nfs4_do_setlk()
[all …]

12