Searched refs:file_lock (Results 1 - 25 of 74) sorted by relevance

123

/linux-master/fs/ocfs2/
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 Dlocks.c24 int cmd, struct file_lock *fl)
40 struct file_lock request;
82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl)
98 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl)
116 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl)
H A Dstackglue.h23 struct file_lock;
210 struct file_lock *fl);
282 struct file *file, int cmd, struct file_lock *fl);
H A Docfs1_fs_compat.h64 __u8 file_lock; member in struct:ocfs1_disk_lock
/linux-master/include/linux/
H A Dfilelock.h29 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);
70 * struct file_lock has a union that some filesystems use to track
76 * struct file_lock represents a generic "file lock". It's used to represent
112 struct file_lock { struct
[all...]
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 Dfdtable.h62 spinlock_t file_lock ____cacheline_aligned_in_smp;
75 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
101 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock),
/linux-master/fs/
H A Dfile.c167 * The files->file_lock should be held on entry, and will be held on exit.
170 __releases(files->file_lock)
171 __acquires(files->file_lock)
175 spin_unlock(&files->file_lock);
184 spin_lock(&files->file_lock);
212 * The files->file_lock should be held on entry, and will be held on exit.
215 __releases(files->file_lock)
216 __acquires(files->file_lock)
233 spin_unlock(&files->file_lock);
236 spin_lock(&files->file_lock);
[all...]
H A Dlocks.c72 static struct file_lock *file_lock(struct file_lock_core *flc) function
74 return container_of(flc, struct file_lock, c);
162 * fl->fl_blocker pointer for file_lock structures that are acting as lock
273 struct file_lock *locks_alloc_lock(void)
275 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL);
296 void locks_release_private(struct file_lock *fl)
350 void locks_free_lock(struct file_lock *fl)
375 locks_free_lock(file_lock(flc));
379 void locks_init_lock(struct file_lock *f
2405 struct file_lock *file_lock = locks_alloc_lock(); local
2529 struct file_lock *file_lock = locks_alloc_lock(); local
[all...]
/linux-master/include/linux/lockd/
H A Dbind.h81 extern int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data);
H A Dlockd.h131 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,
376 const struct file_lock *fl2)
H A Dxdr4.h25 void nlm4svc_set_file_lock_range(struct file_lock *fl, u64 off, u64 len);
H A Dxdr.h47 struct file_lock fl;
/linux-master/include/trace/events/
H A Dfilelock.h63 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-master/fs/lockd/
H A Dclntproc.c30 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)
162 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data)
432 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl)
465 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *f
[all...]
H A Dclntlock.c88 void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct file_lock *fl)
163 const struct file_lock *fl = &lock->fl;
174 struct file_lock *fl_blocked = block->b_lock;
232 struct file_lock *fl, *next;
H A Dsvcsubs.c74 int lock_to_openmode(struct file_lock *lock)
179 static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl)
181 struct file_lock lock;
212 struct file_lock *fl;
267 struct file_lock *fl;
H A Dxdr4.c36 void nlm4svc_set_file_lock_range(struct file_lock *fl, u64 off, u64 len)
76 struct file_lock *fl = &lock->fl;
101 const struct file_lock *fl = &lock->fl;
/linux-master/fs/ceph/
H A Dlocks.c34 static void ceph_fl_copy_lock(struct file_lock *dst, struct file_lock *src)
45 static void ceph_fl_release_lock(struct file_lock *fl)
51 * If inode is NULL it should be a request file_lock,
77 int cmd, u8 wait, struct file_lock *fl)
89 * handling request reply and adding file_lock struct to
228 static int try_unlock_file(struct file *file, struct file_lock *fl)
247 int ceph_lock(struct file *file, int cmd, struct file_lock *fl)
314 int ceph_flock(struct file *file, int cmd, struct file_lock *fl)
380 struct file_lock *loc
[all...]
/linux-master/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;
113 struct file_lock *p, *_p, *next = NULL;
159 struct file_lock *p;
165 struct file_lock, fl_u.afs.link);
451 static int afs_do_setlk(struct file *file, struct file_lock *fl)
701 static int afs_do_unlk(struct file *file, struct file_lock *fl)
722 static int afs_do_getlk(struct file *file, struct file_lock *f
[all...]
/linux-master/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)
242 struct file_lock *fl;
243 struct file_lock *flc;
244 int (*notify)(struct file_lock *fl, int result) = NULL;
289 struct file_lock *fl)
360 struct file_lock *fl)
423 struct file_lock *fl)
/linux-master/io_uring/
H A Dopenclose.c236 spin_lock(&files->file_lock);
239 spin_unlock(&files->file_lock);
245 spin_unlock(&files->file_lock);
250 spin_unlock(&files->file_lock);
/linux-master/fs/smb/server/
H A Dvfs.h140 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock);
141 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout);
142 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock);
/linux-master/fs/9p/
H A Dvfs_file.c104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
223 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
288 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
319 struct file_lock *fl)
/linux-master/fs/nfs/
H A Ddelegation.h72 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);

Completed in 238 milliseconds

123