Lines Matching refs:file_lock

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()
178 static inline void locks_wake_up(struct file_lock *fl) in locks_wake_up()
190 void locks_free_lock(struct file_lock *fl);
191 void locks_init_lock(struct file_lock *);
192 struct file_lock *locks_alloc_lock(void);
193 void locks_copy_lock(struct file_lock *, struct file_lock *);
194 void locks_copy_conflock(struct file_lock *, struct file_lock *);
197 void locks_release_private(struct file_lock *);
198 void posix_test_lock(struct file *, struct file_lock *);
199 int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
200 int locks_delete_block(struct file_lock *);
201 int vfs_test_lock(struct file *, struct file_lock *);
202 int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
203 int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
205 int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
269 static inline bool lock_is_unlock(struct file_lock *fl) in lock_is_unlock()
274 static inline bool lock_is_read(struct file_lock *fl) in lock_is_read()
279 static inline bool lock_is_write(struct file_lock *fl) in lock_is_write()
284 static inline void locks_wake_up(struct file_lock *fl) in locks_wake_up()
293 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
303 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
308 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
323 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
328 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
329 struct file_lock *conflock) in posix_lock_file()
334 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
339 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
345 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
350 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
360 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
420 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()