Lines Matching refs:file_lock

1009 struct file_lock;
1012 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1013 void (*fl_release_private)(struct file_lock *);
1019 void (*lm_notify)(struct file_lock *); /* unblock callback */
1020 int (*lm_grant)(struct file_lock *, int);
1021 bool (*lm_break)(struct file_lock *);
1022 int (*lm_change)(struct file_lock *, int, struct list_head *);
1023 void (*lm_setup)(struct file_lock *, void **);
1024 bool (*lm_breaker_owns_lease)(struct file_lock *);
1062 struct file_lock { struct
1063 struct file_lock *fl_blocker; /* The lock, that is blocking us */ argument
1134 void locks_free_lock(struct file_lock *fl);
1135 extern void locks_init_lock(struct file_lock *);
1136 extern struct file_lock * locks_alloc_lock(void);
1137 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1138 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1141 extern void locks_release_private(struct file_lock *);
1142 extern void posix_test_lock(struct file *, struct file_lock *);
1143 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1144 extern int locks_delete_block(struct file_lock *);
1145 extern int vfs_test_lock(struct file *, struct file_lock *);
1146 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1147 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1148 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1151 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1152 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1153 extern int lease_modify(struct file_lock *, int, struct list_head *);
1203 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1208 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1213 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1228 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1233 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1234 struct file_lock *conflock) in posix_lock_file()
1239 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
1244 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1250 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1255 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1260 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1277 struct file_lock **flp, void **priv) in generic_setlease()
1283 struct file_lock **lease, void **priv) in vfs_setlease()
1288 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1309 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1842 int (*lock) (struct file *, int, struct file_lock *);
1846 int (*flock) (struct file *, int, struct file_lock *);
1849 int (*setlease)(struct file *, long, struct file_lock **, void **);
3174 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);