Lines Matching refs:file_lock
1033 struct file_lock;
1036 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1037 void (*fl_release_private)(struct file_lock *);
1046 void (*lm_notify)(struct file_lock *); /* unblock callback */
1047 int (*lm_grant)(struct file_lock *, int);
1048 bool (*lm_break)(struct file_lock *);
1049 int (*lm_change)(struct file_lock *, int, struct list_head *);
1050 void (*lm_setup)(struct file_lock *, void **);
1051 bool (*lm_breaker_owns_lease)(struct file_lock *);
1092 struct file_lock { struct
1093 struct file_lock *fl_blocker; /* The lock, that is blocking us */ argument
1168 void locks_free_lock(struct file_lock *fl);
1169 extern void locks_init_lock(struct file_lock *);
1170 extern struct file_lock * locks_alloc_lock(void);
1171 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1172 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1175 extern void locks_release_private(struct file_lock *);
1176 extern void posix_test_lock(struct file *, struct file_lock *);
1177 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1178 extern int locks_delete_block(struct file_lock *);
1179 extern int vfs_test_lock(struct file *, struct file_lock *);
1180 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1181 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1182 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1185 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1186 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1187 extern int lease_modify(struct file_lock *, int, struct list_head *);
1237 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1242 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1247 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1262 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1267 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1268 struct file_lock *conflock) in posix_lock_file()
1273 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
1278 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1284 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1289 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1294 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1311 struct file_lock **flp, void **priv) in generic_setlease()
1317 struct file_lock **lease, void **priv) in vfs_setlease()
1322 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1343 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1898 int (*lock) (struct file *, int, struct file_lock *);
1902 int (*flock) (struct file *, int, struct file_lock *);
1905 int (*setlease)(struct file *, long, struct file_lock **, void **);
3257 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);