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()
185 void locks_free_lock(struct file_lock *fl);
186 void locks_init_lock(struct file_lock *);
187 struct file_lock *locks_alloc_lock(void);
188 void locks_copy_lock(struct file_lock *, struct file_lock *);
189 void locks_copy_conflock(struct file_lock *, struct file_lock *);
192 void locks_release_private(struct file_lock *);
193 void posix_test_lock(struct file *, struct file_lock *);
194 int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
195 int locks_delete_block(struct file_lock *);
196 int vfs_test_lock(struct file *, struct file_lock *);
197 int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
198 int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
200 int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
264 static inline bool lock_is_unlock(struct file_lock *fl) in lock_is_unlock()
269 static inline bool lock_is_read(struct file_lock *fl) in lock_is_read()
274 static inline bool lock_is_write(struct file_lock *fl) in lock_is_write()
279 static inline void locks_wake_up(struct file_lock *fl) in locks_wake_up()
288 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
298 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
303 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
318 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
323 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
324 struct file_lock *conflock) in posix_lock_file()
329 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
334 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
340 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
345 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
355 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
415 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()