/linux-6.12.1/include/linux/ |
D | filelock.h | 29 struct file_lock; 33 void (*fl_copy_lock)(struct file_lock *, struct file_lock *); 34 void (*fl_release_private)(struct file_lock *); 41 void (*lm_notify)(struct file_lock *); /* unblock callback */ 42 int (*lm_grant)(struct file_lock *, int); 43 bool (*lm_lock_expirable)(struct file_lock *cfl); 112 struct file_lock { struct 163 static inline bool lock_is_unlock(struct file_lock *fl) in lock_is_unlock() 168 static inline bool lock_is_read(struct file_lock *fl) in lock_is_read() 173 static inline bool lock_is_write(struct file_lock *fl) in lock_is_write() [all …]
|
D | dlm_plock.h | 11 int cmd, struct file_lock *fl); 13 struct file_lock *fl); 15 struct file_lock *fl); 17 struct file_lock *fl);
|
D | fdtable.h | 51 spinlock_t file_lock ____cacheline_aligned_in_smp; 64 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock)) 90 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked()
|
/linux-6.12.1/fs/ |
D | file.c | 166 __releases(files->file_lock) in expand_fdtable() 167 __acquires(files->file_lock) in expand_fdtable() 171 spin_unlock(&files->file_lock); in expand_fdtable() 180 spin_lock(&files->file_lock); in expand_fdtable() 211 __releases(files->file_lock) in expand_files() 212 __acquires(files->file_lock) in expand_files() 229 spin_unlock(&files->file_lock); in expand_files() 232 spin_lock(&files->file_lock); in expand_files() 317 spin_lock_init(&newf->file_lock); in dup_fd() 328 spin_lock(&oldf->file_lock); in dup_fd() [all …]
|
D | locks.c | 72 static struct file_lock *file_lock(struct file_lock_core *flc) in file_lock() function 74 return container_of(flc, struct file_lock, c); in file_lock() 273 struct file_lock *locks_alloc_lock(void) in locks_alloc_lock() 275 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); in locks_alloc_lock() 296 void locks_release_private(struct file_lock *fl) in locks_release_private() 350 void locks_free_lock(struct file_lock *fl) in locks_free_lock() 375 locks_free_lock(file_lock(flc)); in locks_dispose_list() 379 void locks_init_lock(struct file_lock *fl) in locks_init_lock() 381 memset(fl, 0, sizeof(struct file_lock)); in locks_init_lock() 396 void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock() [all …]
|
/linux-6.12.1/fs/ocfs2/ |
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()
|
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);
|
D | stackglue.h | 23 struct file_lock; 210 struct file_lock *fl); 282 struct file *file, int cmd, struct file_lock *fl);
|
/linux-6.12.1/fs/lockd/ |
D | clntproc.c | 30 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 …]
|
D | clntlock.c | 88 void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() 163 const struct file_lock *fl = &lock->fl; in nlmclnt_grant() 174 struct file_lock *fl_blocked = block->b_lock; in nlmclnt_grant() 232 struct file_lock *fl, *next; in reclaimer()
|
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()
|
D | xdr4.c | 36 void nlm4svc_set_file_lock_range(struct file_lock *fl, u64 off, u64 len) in nlm4svc_set_file_lock_range() 76 struct file_lock *fl = &lock->fl; in svcxdr_decode_lock() 101 const struct file_lock *fl = &lock->fl; in svcxdr_encode_holder()
|
/linux-6.12.1/Documentation/filesystems/ |
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 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-6.12.1/include/linux/lockd/ |
D | lockd.h | 131 struct file_lock *b_lock; /* local file lock */ 217 struct file_lock *fl); 224 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *, 276 int lock_to_openmode(struct file_lock *); 290 void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t); 375 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks() 376 const struct file_lock *fl2) in nlm_compare_locks()
|
/linux-6.12.1/fs/ceph/ |
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() 228 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file() 247 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() 314 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() 380 struct file_lock *lock; in ceph_count_locks() 403 struct file_lock *lock, in lock_to_ceph_filelock() 443 struct file_lock *lock; in ceph_encode_locks_to_buffer()
|
/linux-6.12.1/fs/afs/ |
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() 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-6.12.1/include/trace/events/ |
D | filelock.h | 63 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret), 68 __field(struct file_lock *, fl) 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), 116 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
|
/linux-6.12.1/fs/dlm/ |
D | plock.c | 28 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-6.12.1/fs/smb/server/ |
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.12.1/io_uring/ |
D | openclose.c | 236 spin_lock(&files->file_lock); in io_close() 239 spin_unlock(&files->file_lock); in io_close() 245 spin_unlock(&files->file_lock); in io_close() 250 spin_unlock(&files->file_lock); in io_close()
|
/linux-6.12.1/fs/9p/ |
D | vfs_file.c | 104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() 118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() 223 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock() 288 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() 319 struct file_lock *fl) in v9fs_file_flock_dotl()
|
/linux-6.12.1/drivers/misc/genwqe/ |
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.12.1/drivers/fsi/ |
D | fsi-sbefifo.c | 136 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-6.12.1/Documentation/RCU/ |
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.12.1/fs/smb/client/ |
D | cifsfs.h | 101 extern int cifs_flock(struct file *pfile, int cmd, struct file_lock *plock); 102 extern int cifs_lock(struct file *, int, struct file_lock *);
|