Lines Matching refs:file_lock

1031 struct file_lock;
1034 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1035 void (*fl_release_private)(struct file_lock *);
1042 void (*lm_notify)(struct file_lock *); /* unblock callback */
1043 int (*lm_grant)(struct file_lock *, int);
1044 bool (*lm_break)(struct file_lock *);
1045 int (*lm_change)(struct file_lock *, int, struct list_head *);
1046 void (*lm_setup)(struct file_lock *, void **);
1047 bool (*lm_breaker_owns_lease)(struct file_lock *);
1048 bool (*lm_lock_expirable)(struct file_lock *cfl);
1087 struct file_lock { struct
1088 struct file_lock *fl_blocker; /* The lock, that is blocking us */ argument
1159 void locks_free_lock(struct file_lock *fl);
1160 extern void locks_init_lock(struct file_lock *);
1161 extern struct file_lock * locks_alloc_lock(void);
1162 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1163 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1166 extern void locks_release_private(struct file_lock *);
1167 extern void posix_test_lock(struct file *, struct file_lock *);
1168 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1169 extern int locks_delete_block(struct file_lock *);
1170 extern int vfs_test_lock(struct file *, struct file_lock *);
1171 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1172 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1173 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1176 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1177 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1178 extern int lease_modify(struct file_lock *, int, struct list_head *);
1230 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1235 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1240 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1255 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1260 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1261 struct file_lock *conflock) in posix_lock_file()
1266 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
1271 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1277 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1282 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1287 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1304 struct file_lock **flp, void **priv) in generic_setlease()
1310 struct file_lock **lease, void **priv) in vfs_setlease()
1315 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1341 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
2124 int (*lock) (struct file *, int, struct file_lock *);
2128 int (*flock) (struct file *, int, struct file_lock *);
2131 int (*setlease)(struct file *, long, struct file_lock **, void **);
3350 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);