Home
last modified time | relevance | path

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

1234

/linux/fs/
A Dlocks.c177 struct file_lock *fl; in locks_dump_ctx_list()
205 struct file_lock *fl; in locks_check_ctx_file_list()
284 struct file_lock *fl; in locks_dispose_list()
303 void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
322 void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
339 static void locks_move_blocks(struct file_lock *new, struct file_lock *fl) in locks_move_blocks()
341 struct file_lock *f; in locks_move_blocks()
552 static int posix_same_owner(struct file_lock *fl1, struct file_lock *fl2) in posix_same_owner()
715 struct file_lock *fl; in __locks_insert_block()
2285 struct file_lock *file_lock = locks_alloc_lock(); in fcntl_setlk() local
[all …]
A Dfile.c154 __releases(files->file_lock) in expand_fdtable()
155 __acquires(files->file_lock) in expand_fdtable()
168 spin_lock(&files->file_lock); in expand_fdtable()
199 __releases(files->file_lock) in expand_files()
200 __acquires(files->file_lock) in expand_files()
220 spin_lock(&files->file_lock); in expand_files()
312 spin_lock(&oldf->file_lock); in dup_fd()
343 spin_lock(&oldf->file_lock); in dup_fd()
449 .file_lock = __SPIN_LOCK_UNLOCKED(init_files.file_lock),
477 spin_lock(&files->file_lock); in alloc_fd()
[all …]
/linux/include/trace/events/
A Dfilelock.h63 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
68 __field(struct file_lock *, fl)
71 __field(struct file_lock *, fl_blocker)
104 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
108 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
112 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
120 TP_PROTO(struct inode *inode, struct file_lock *fl),
125 __field(struct file_lock *, fl)
128 __field(struct file_lock *, fl_blocker)
172 TP_PROTO(struct inode *inode, struct file_lock *fl),
[all …]
/linux/include/linux/
A Dfs.h1055 struct file_lock;
1058 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1108 struct file_lock { struct
1183 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1184 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1189 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1192 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1254 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1259 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1280 struct file_lock *conflock) in posix_lock_file()
[all …]
A Ddlm_plock.h11 int cmd, struct file_lock *fl);
13 struct file_lock *fl);
15 struct file_lock *fl);
A Dfdtable.h62 spinlock_t file_lock ____cacheline_aligned_in_smp;
75 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
96 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked()
/linux/fs/ocfs2/
A Dlocks.c23 int cmd, struct file_lock *fl) in ocfs2_do_flock()
39 struct file_lock request; in ocfs2_do_flock()
81 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
97 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
115 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock()
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);
A Dstackglue.h23 struct file_lock;
210 struct file_lock *fl);
282 struct file *file, int cmd, struct file_lock *fl);
/linux/fs/lockd/
A 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 *);
32 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
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()
487 static int do_vfs_lock(struct file_lock *fl) in do_vfs_lock()
513 nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_lock()
620 nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl, in nlmclnt_reclaim()
[all …]
A 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()
A Dsvcsubs.c74 int lock_to_openmode(struct file_lock *lock) in lock_to_openmode()
181 struct file_lock lock; in nlm_unlock_files()
206 struct file_lock *fl; in nlm_traverse_locks()
261 struct file_lock *fl; in nlm_file_inuse()
/linux/Documentation/filesystems/
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
110 holding files->file_lock. If ->file_lock is dropped, then
116 spin_lock(&files->file_lock);
123 spin_unlock(&files->file_lock);
126 Since locate_fd() can drop ->file_lock (and reacquire ->file_lock),
/linux/fs/ceph/
A Dlocks.c33 static void ceph_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in ceph_fl_copy_lock()
41 static void ceph_fl_release_lock(struct file_lock *fl) in ceph_fl_release_lock()
64 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message()
213 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file()
232 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
298 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
361 struct file_lock *lock; in ceph_count_locks()
383 static int lock_to_ceph_filelock(struct file_lock *lock, in lock_to_ceph_filelock()
420 struct file_lock *lock; in ceph_encode_locks_to_buffer()
/linux/fs/afs/
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()
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()
764 int afs_lock(struct file *file, int cmd, struct file_lock *fl) in afs_lock()
844 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl) in afs_fl_copy_lock()
[all …]
/linux/include/linux/lockd/
A Dlockd.h215 struct nlm_wait * nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl);
221 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
273 int lock_to_openmode(struct file_lock *);
287 void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
366 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
367 const struct file_lock *fl2) in nlm_compare_locks()
/linux/fs/dlm/
A Dplock.c30 int (*callback)(struct file_lock *fl, int result);
33 struct file_lock flc;
78 struct file *file, struct file_lock *fl) in do_unlock_close()
102 int cmd, struct file_lock *fl) in dlm_posix_lock()
188 struct file_lock *fl; in dlm_plock_callback()
189 struct file_lock *flc; in dlm_plock_callback()
190 int (*notify)(struct file_lock *fl, int result) = NULL; in dlm_plock_callback()
242 struct file_lock *fl) in dlm_posix_unlock()
316 struct file_lock *fl) in dlm_posix_get()
/linux/fs/ksmbd/
A Dvfs.h138 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock);
139 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout);
140 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock);
/linux/fs/nfsd/
A Dnfs4state.c5034 struct file_lock *fl; in nfs4_alloc_init_lease()
5115 struct file_lock *fl; in nfs4_set_delegation()
6837 struct file_lock *file_lock = NULL; in nfsd4_lock() local
6955 file_lock = &nbl->nbl_lock; in nfsd4_lock()
7079 struct file_lock *file_lock = NULL; in nfsd4_lockt() local
7100 if (!file_lock) { in nfsd4_lockt()
7143 if (file_lock) in nfsd4_lockt()
7155 struct file_lock *file_lock = NULL; in nfsd4_locku() local
7178 if (!file_lock) { in nfsd4_locku()
7209 if (file_lock) in nfsd4_locku()
[all …]
/linux/drivers/misc/genwqe/
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()
/linux/Documentation/RCU/
A Dlockdep.rst73 lockdep_is_held(&files->file_lock) ||
81 2. with files->file_lock held, or
85 RCU read-side critical sections, in case (2) the ->file_lock prevents
92 lockdep_is_held(&files->file_lock) ||
/linux/fs/9p/
A Dvfs_file.c115 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock()
130 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock()
236 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock()
301 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl()
332 struct file_lock *fl) in v9fs_file_flock_dotl()
/linux/fs/cifs/
A Dcifsfs.h103 extern int cifs_flock(struct file *pfile, int cmd, struct file_lock *plock);
104 extern int cifs_lock(struct file *, int, struct file_lock *);
/linux/drivers/fsi/
A Dfsi-sbefifo.c132 struct mutex file_lock; member
797 mutex_init(&user->file_lock); in sbefifo_user_open()
818 mutex_lock(&user->file_lock); in sbefifo_user_read()
849 mutex_unlock(&user->file_lock); in sbefifo_user_read()
868 mutex_lock(&user->file_lock); in sbefifo_user_write()
910 mutex_unlock(&user->file_lock); in sbefifo_user_write()
/linux/fs/nfs/
A Dfile.c688 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk()
717 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk()
753 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk()
797 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
835 int nfs_flock(struct file *filp, int cmd, struct file_lock *fl) in nfs_flock()

Completed in 60 milliseconds

1234