/linux-6.3-rc2/include/linux/ |
A D | filelock.h | 29 struct file_lock; 32 void (*fl_copy_lock)(struct file_lock *, struct file_lock *); 88 struct file_lock { struct 155 void locks_copy_lock(struct file_lock *, struct file_lock *); 156 void locks_copy_conflock(struct file_lock *, struct file_lock *); 161 int posix_lock_file(struct file *, struct file_lock *, struct file_lock *); 164 int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *); 236 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock() 241 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock() 262 struct file_lock *conflock) in posix_lock_file() [all …]
|
A D | dlm_plock.h | 11 int cmd, struct file_lock *fl); 13 struct file_lock *fl); 15 struct file_lock *fl);
|
A D | fdtable.h | 62 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-6.3-rc2/fs/ |
A D | locks.c | 208 struct file_lock *fl; in locks_dump_ctx_list() 236 struct file_lock *fl; in locks_check_ctx_file_list() 316 struct file_lock *fl; in locks_owner_has_blockers() 343 struct file_lock *fl; in locks_dispose_list() 362 void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock() 381 void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock() 398 static void locks_move_blocks(struct file_lock *new, struct file_lock *fl) in locks_move_blocks() 400 struct file_lock *f; in locks_move_blocks() 597 static int posix_same_owner(struct file_lock *fl1, struct file_lock *fl2) in posix_same_owner() 2329 struct file_lock *file_lock = locks_alloc_lock(); in fcntl_setlk() local [all …]
|
A D | file.c | 170 __releases(files->file_lock) in expand_fdtable() 171 __acquires(files->file_lock) in expand_fdtable() 184 spin_lock(&files->file_lock); in expand_fdtable() 215 __releases(files->file_lock) in expand_files() 216 __acquires(files->file_lock) in expand_files() 236 spin_lock(&files->file_lock); in expand_files() 341 spin_lock(&oldf->file_lock); in dup_fd() 372 spin_lock(&oldf->file_lock); in dup_fd() 478 .file_lock = __SPIN_LOCK_UNLOCKED(init_files.file_lock), 506 spin_lock(&files->file_lock); in alloc_fd() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | filelock.h | 63 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-6.3-rc2/fs/ocfs2/ |
A D | locks.c | 24 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()
|
A D | locks.h | 13 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 D | stackglue.h | 23 struct file_lock; 210 struct file_lock *fl); 282 struct file *file, int cmd, struct file_lock *fl);
|
/linux-6.3-rc2/fs/lockd/ |
A D | clntproc.c | 28 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *); 29 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *); 30 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *); 33 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *); 429 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test() 458 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmclnt_locks_copy_lock() 467 static void nlmclnt_locks_release_private(struct file_lock *fl) in nlmclnt_locks_release_private() 488 static int do_vfs_lock(struct file_lock *fl) in do_vfs_lock() 514 nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_lock() 621 nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl, in nlmclnt_reclaim() [all …]
|
A D | clntlock.c | 39 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 D | svcsubs.c | 74 int lock_to_openmode(struct file_lock *lock) in lock_to_openmode() 179 static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl) in nlm_unlock_files() 181 struct file_lock lock; in nlm_unlock_files() 212 struct file_lock *fl; in nlm_traverse_locks() 267 struct file_lock *fl; in nlm_file_inuse()
|
/linux-6.3-rc2/Documentation/filesystems/ |
A D | files.rst | 11 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-6.3-rc2/fs/ceph/ |
A D | locks.c | 34 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() 226 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file() 245 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() 311 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() 374 struct file_lock *lock; in ceph_count_locks() 396 static int lock_to_ceph_filelock(struct file_lock *lock, in lock_to_ceph_filelock() 433 struct file_lock *lock; in ceph_encode_locks_to_buffer()
|
/linux-6.3-rc2/fs/afs/ |
A D | flock.c | 17 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-6.3-rc2/io_uring/ |
A D | openclose.c | 231 spin_lock(&files->file_lock); in io_close() 234 spin_unlock(&files->file_lock); in io_close() 238 lockdep_is_held(&files->file_lock)); in io_close() 240 spin_unlock(&files->file_lock); in io_close() 246 spin_unlock(&files->file_lock); in io_close() 251 spin_unlock(&files->file_lock); in io_close()
|
/linux-6.3-rc2/include/linux/lockd/ |
A D | lockd.h | 215 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); 372 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks() 373 const struct file_lock *fl2) in nlm_compare_locks()
|
/linux-6.3-rc2/fs/dlm/ |
A D | plock.c | 26 struct file_lock flc; 27 int (*callback)(struct file_lock *fl, int result); 106 int cmd, struct file_lock *fl) in dlm_posix_lock() 203 struct file_lock *fl; in dlm_plock_callback() 204 struct file_lock *flc; in dlm_plock_callback() 205 int (*notify)(struct file_lock *fl, int result) = NULL; in dlm_plock_callback() 250 struct file_lock *fl) in dlm_posix_unlock() 318 struct file_lock *fl) in dlm_posix_get()
|
/linux-6.3-rc2/fs/ksmbd/ |
A D | vfs.h | 141 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock); 142 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout); 143 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock);
|
/linux-6.3-rc2/drivers/misc/genwqe/ |
A D | card_dev.c | 37 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-6.3-rc2/drivers/fsi/ |
A D | fsi-sbefifo.c | 135 struct mutex file_lock; member 804 mutex_init(&user->file_lock); in sbefifo_user_open() 826 mutex_lock(&user->file_lock); in sbefifo_user_read() 859 mutex_unlock(&user->file_lock); in sbefifo_user_read() 878 mutex_lock(&user->file_lock); in sbefifo_user_write() 920 mutex_unlock(&user->file_lock); in sbefifo_user_write() 972 mutex_lock(&user->file_lock); in sbefifo_user_ioctl() 978 mutex_unlock(&user->file_lock); in sbefifo_user_ioctl()
|
/linux-6.3-rc2/fs/nfsd/ |
A D | nfs4state.c | 5324 struct file_lock *fl; in nfs4_alloc_init_lease() 5453 struct file_lock *fl; in nfs4_set_delegation() 7433 struct file_lock *file_lock = NULL; in nfsd4_lock() local 7557 file_lock = &nbl->nbl_lock; in nfsd4_lock() 7689 struct file_lock *file_lock = NULL; in nfsd4_lockt() local 7710 if (!file_lock) { in nfsd4_lockt() 7753 if (file_lock) in nfsd4_lockt() 7765 struct file_lock *file_lock = NULL; in nfsd4_locku() local 7788 if (!file_lock) { in nfsd4_locku() 7819 if (file_lock) in nfsd4_locku() [all …]
|
/linux-6.3-rc2/Documentation/RCU/ |
A D | lockdep.rst | 76 lockdep_is_held(&files->file_lock) || 84 2. with files->file_lock held, or 88 RCU read-side critical sections, in case (2) the ->file_lock prevents 95 lockdep_is_held(&files->file_lock) ||
|
/linux-6.3-rc2/fs/9p/ |
A D | vfs_file.c | 118 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() 132 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() 237 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock() 302 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() 333 struct file_lock *fl) in v9fs_file_flock_dotl()
|
/linux-6.3-rc2/fs/cifs/ |
A D | cifsfs.h | 106 extern int cifs_flock(struct file *pfile, int cmd, struct file_lock *plock); 107 extern int cifs_lock(struct file *, int, struct file_lock *);
|