Lines Matching refs:file_lock

29 struct file_lock;
32 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
33 void (*fl_release_private)(struct file_lock *);
40 void (*lm_notify)(struct file_lock *); /* unblock callback */
41 int (*lm_grant)(struct file_lock *, int);
42 bool (*lm_break)(struct file_lock *);
43 int (*lm_change)(struct file_lock *, int, struct list_head *);
44 void (*lm_setup)(struct file_lock *, void **);
45 bool (*lm_breaker_owns_lease)(struct file_lock *);
46 bool (*lm_lock_expirable)(struct file_lock *cfl);
88 struct file_lock { struct
89 struct file_lock *fl_blocker; /* The lock, that is blocking us */ argument
152 void locks_free_lock(struct file_lock *fl);
153 void locks_init_lock(struct file_lock *);
154 struct file_lock * locks_alloc_lock(void);
155 void locks_copy_lock(struct file_lock *, struct file_lock *);
156 void locks_copy_conflock(struct file_lock *, struct file_lock *);
159 void locks_release_private(struct file_lock *);
160 void posix_test_lock(struct file *, struct file_lock *);
161 int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
162 int locks_delete_block(struct file_lock *);
163 int vfs_test_lock(struct file *, struct file_lock *);
164 int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
165 int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
167 int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
170 int generic_setlease(struct file *, long, struct file_lock **, void **priv);
171 int vfs_setlease(struct file *, long, struct file_lock **, void **);
172 int lease_modify(struct file_lock *, int, struct list_head *);
231 static inline void locks_init_lock(struct file_lock *fl) in locks_init_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()
256 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
261 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
262 struct file_lock *conflock) in posix_lock_file()
267 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
272 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
278 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
283 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
293 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
310 struct file_lock **flp, void **priv) in generic_setlease()
316 struct file_lock **lease, void **priv) in vfs_setlease()
321 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
344 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()