Lines Matching refs:file_lock
1015 struct file_lock;
1018 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1019 void (*fl_release_private)(struct file_lock *);
1026 void (*lm_notify)(struct file_lock *); /* unblock callback */
1027 int (*lm_grant)(struct file_lock *, int);
1028 bool (*lm_break)(struct file_lock *);
1029 int (*lm_change)(struct file_lock *, int, struct list_head *);
1030 void (*lm_setup)(struct file_lock *, void **);
1031 bool (*lm_breaker_owns_lease)(struct file_lock *);
1032 bool (*lm_lock_expirable)(struct file_lock *cfl);
1071 struct file_lock { struct
1072 struct file_lock *fl_blocker; /* The lock, that is blocking us */ argument
1143 void locks_free_lock(struct file_lock *fl);
1144 extern void locks_init_lock(struct file_lock *);
1145 extern struct file_lock * locks_alloc_lock(void);
1146 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1147 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1150 extern void locks_release_private(struct file_lock *);
1151 extern void posix_test_lock(struct file *, struct file_lock *);
1152 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1153 extern int locks_delete_block(struct file_lock *);
1154 extern int vfs_test_lock(struct file *, struct file_lock *);
1155 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1156 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1157 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1160 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1161 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1162 extern int lease_modify(struct file_lock *, int, struct list_head *);
1214 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1219 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1224 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1239 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1244 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1245 struct file_lock *conflock) in posix_lock_file()
1250 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
1255 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1261 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1266 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1271 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1288 struct file_lock **flp, void **priv) in generic_setlease()
1294 struct file_lock **lease, void **priv) in vfs_setlease()
1299 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1325 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1985 int (*lock) (struct file *, int, struct file_lock *);
1989 int (*flock) (struct file *, int, struct file_lock *);
1992 int (*setlease)(struct file *, long, struct file_lock **, void **);
3190 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);