Home
last modified time | relevance | path

Searched full:file_lock (Results 1 – 25 of 43) sorted by relevance

12

/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/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/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()
89 * handling request reply and adding file_lock struct to 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()
[all …]
/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/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/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.h260 * @file_lock: Lock to protect access to file_list
315 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/net/core/
H A Dnetclassid_cgroup.c60 * and opened sockets lets release file_lock every 1000 iterated descriptors.
/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()
1805 * 3) FILE_LOCK_DEFERRED, if we will wait for some other file_lock;
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()
[all …]
H A Dsmb2proto.h112 int smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
/linux/security/apparmor/include/
H A Daudit.h65 #define OP_FLOCK "file_lock"
/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/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/fuse/
H A Dfile.c2435 struct file_lock *fl) in convert_fuse_file_lock()
2467 const struct file_lock *fl, int opcode, pid_t pid, in fuse_lk_fill()
2490 static int fuse_getlk(struct file *file, struct file_lock *fl) in fuse_getlk()
2510 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) in fuse_setlk()
2536 static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl) in fuse_file_lock()
2559 static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl) in fuse_file_flock()
/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 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 …]
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 *);

12