/kernel/linux/linux-5.10/fs/ |
H A D | locks.c | 177 #define IS_POSIX(fl) (fl->fl_flags & FL_POSIX) 178 #define IS_FLOCK(fl) (fl->fl_flags & FL_FLOCK) 179 #define IS_LEASE(fl) (fl->fl_flags & (FL_LEASE|FL_DELEG|FL_LAYOUT)) 180 #define IS_OFDLCK(fl) (fl->fl_flags & FL_OFDLCK) 181 #define IS_REMOTELCK(fl) (fl 183 lease_breaking(struct file_lock *fl) lease_breaking() argument 188 target_leasetype(struct file_lock *fl) target_leasetype() argument 283 struct file_lock *fl; locks_dump_ctx_list() local 311 struct file_lock *fl; locks_check_ctx_file_list() local 334 locks_init_lock_heads(struct file_lock *fl) locks_init_lock_heads() argument 346 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); locks_alloc_lock() local 355 locks_release_private(struct file_lock *fl) locks_release_private() argument 380 locks_free_lock(struct file_lock *fl) locks_free_lock() argument 390 struct file_lock *fl; locks_dispose_list() local 399 locks_init_lock(struct file_lock *fl) locks_init_lock() argument 409 locks_copy_conflock(struct file_lock *new, struct file_lock *fl) locks_copy_conflock() argument 428 locks_copy_lock(struct file_lock *new, struct file_lock *fl) locks_copy_lock() argument 445 locks_move_blocks(struct file_lock *new, struct file_lock *fl) locks_move_blocks() argument 479 flock_make_lock(struct file *filp, unsigned int cmd, struct file_lock *fl) flock_make_lock() argument 504 assign_type(struct file_lock *fl, long type) assign_type() argument 518 flock64_to_posix_lock(struct file *filp, struct file_lock *fl, struct flock64 *l) flock64_to_posix_lock() argument 568 flock_to_posix_lock(struct file *filp, struct file_lock *fl, struct flock *l) flock_to_posix_lock() argument 583 lease_break_callback(struct file_lock *fl) lease_break_callback() argument 590 lease_setup(struct file_lock *fl, void **priv) lease_setup() argument 615 lease_init(struct file *filp, long type, struct file_lock *fl) lease_init() argument 635 struct file_lock *fl = locks_alloc_lock(); lease_alloc() local 666 locks_insert_global_locks(struct file_lock *fl) locks_insert_global_locks() argument 679 locks_delete_global_locks(struct file_lock *fl) locks_delete_global_locks() argument 700 posix_owner_key(struct file_lock *fl) posix_owner_key() argument 823 struct file_lock *fl; __locks_insert_block() local 878 locks_insert_lock_ctx(struct file_lock *fl, struct list_head *before) locks_insert_lock_ctx() argument 885 locks_unlink_lock_ctx(struct file_lock *fl) locks_unlink_lock_ctx() argument 893 locks_delete_lock_ctx(struct file_lock *fl, struct list_head *dispose) locks_delete_lock_ctx() argument 952 posix_test_lock(struct file *filp, struct file_lock *fl) posix_test_lock() argument 1016 struct file_lock *fl; what_owner_is_waiting_for() local 1062 struct file_lock *fl; flock_lock_inode() local 1134 struct file_lock *fl, *tmp; posix_lock_inode() local 1369 posix_lock_file(struct file *filp, struct file_lock *fl, struct file_lock *conflock) posix_lock_file() argument 1383 posix_lock_inode_wait(struct inode *inode, struct file_lock *fl) posix_lock_inode_wait() argument 1413 struct file_lock *fl; locks_mandatory_locked() local 1448 struct file_lock fl; locks_mandatory_area() local 1497 lease_clear_pending(struct file_lock *fl, int arg) lease_clear_pending() argument 1509 lease_modify(struct file_lock *fl, int arg, struct list_head *dispose) lease_modify() argument 1544 struct file_lock *fl, *tmp; time_out_leases() local 1583 struct file_lock *fl; any_leases_conflict() local 1611 struct file_lock *new_fl, *fl, *tmp; __break_lease() local 1725 struct file_lock *fl; lease_get_mtime() local 1767 struct file_lock *fl; fcntl_getlease() local 1838 struct file_lock *fl, *my_fl = NULL, *lease; generic_add_lease() local 1954 struct file_lock *fl, *victim = NULL; generic_delete_lease() local 2114 struct file_lock *fl; do_fcntl_add_lease() local 2161 flock_lock_inode_wait(struct inode *inode, struct file_lock *fl) flock_lock_inode_wait() argument 2185 locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) locks_lock_inode_wait() argument 2275 vfs_test_lock(struct file *filp, struct file_lock *fl) vfs_test_lock() argument 2291 locks_translate_pid(struct file_lock *fl, struct pid_namespace *ns) locks_translate_pid() argument 2315 posix_lock_to_flock(struct flock *flock, struct file_lock *fl) posix_lock_to_flock() argument 2337 posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl) posix_lock_to_flock64() argument 2353 struct file_lock *fl; fcntl_getlk() local 2425 vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf) vfs_lock_file() argument 2434 do_lock_file_wait(struct file *filp, unsigned int cmd, struct file_lock *fl) do_lock_file_wait() argument 2459 check_fmode_for_setlk(struct file_lock *fl) check_fmode_for_setlk() argument 2566 struct file_lock *fl; fcntl_getlk64() local 2735 struct file_lock fl; locks_remove_flock() local 2757 struct file_lock *fl, *tmp; locks_remove_lease() local 2808 vfs_cancel_lock(struct file *filp, struct file_lock *fl) vfs_cancel_lock() argument 2848 lock_get_status(struct seq_file *f, struct file_lock *fl, loff_t id, char *pfx) lock_get_status() argument 2930 struct file_lock *fl, *bfl; locks_show() local 2950 struct file_lock *fl; __show_fd_locks() local [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | locks.c | 73 #define IS_POSIX(fl) (fl->fl_flags & FL_POSIX) 74 #define IS_FLOCK(fl) (fl->fl_flags & FL_FLOCK) 75 #define IS_LEASE(fl) (fl->fl_flags & (FL_LEASE|FL_DELEG|FL_LAYOUT)) 76 #define IS_OFDLCK(fl) (fl->fl_flags & FL_OFDLCK) 77 #define IS_REMOTELCK(fl) (fl 79 lease_breaking(struct file_lock *fl) lease_breaking() argument 84 target_leasetype(struct file_lock *fl) target_leasetype() argument 208 struct file_lock *fl; locks_dump_ctx_list() local 236 struct file_lock *fl; locks_check_ctx_file_list() local 259 locks_init_lock_heads(struct file_lock *fl) locks_init_lock_heads() argument 271 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); locks_alloc_lock() local 280 locks_release_private(struct file_lock *fl) locks_release_private() argument 316 struct file_lock *fl; locks_owner_has_blockers() local 333 locks_free_lock(struct file_lock *fl) locks_free_lock() argument 343 struct file_lock *fl; locks_dispose_list() local 352 locks_init_lock(struct file_lock *fl) locks_init_lock() argument 362 locks_copy_conflock(struct file_lock *new, struct file_lock *fl) locks_copy_conflock() argument 381 locks_copy_lock(struct file_lock *new, struct file_lock *fl) locks_copy_lock() argument 398 locks_move_blocks(struct file_lock *new, struct file_lock *fl) locks_move_blocks() argument 429 flock_make_lock(struct file *filp, struct file_lock *fl, int type) flock_make_lock() argument 441 assign_type(struct file_lock *fl, int type) assign_type() argument 455 flock64_to_posix_lock(struct file *filp, struct file_lock *fl, struct flock64 *l) flock64_to_posix_lock() argument 505 flock_to_posix_lock(struct file *filp, struct file_lock *fl, struct flock *l) flock_to_posix_lock() argument 520 lease_break_callback(struct file_lock *fl) lease_break_callback() argument 527 lease_setup(struct file_lock *fl, void **priv) lease_setup() argument 552 lease_init(struct file *filp, int type, struct file_lock *fl) lease_init() argument 572 struct file_lock *fl = locks_alloc_lock(); lease_alloc() local 603 locks_insert_global_locks(struct file_lock *fl) locks_insert_global_locks() argument 616 locks_delete_global_locks(struct file_lock *fl) locks_delete_global_locks() argument 637 posix_owner_key(struct file_lock *fl) posix_owner_key() argument 760 struct file_lock *fl; __locks_insert_block() local 815 locks_insert_lock_ctx(struct file_lock *fl, struct list_head *before) locks_insert_lock_ctx() argument 822 locks_unlink_lock_ctx(struct file_lock *fl) locks_unlink_lock_ctx() argument 830 locks_delete_lock_ctx(struct file_lock *fl, struct list_head *dispose) locks_delete_lock_ctx() argument 902 posix_test_lock(struct file *filp, struct file_lock *fl) posix_test_lock() argument 979 struct file_lock *fl; what_owner_is_waiting_for() local 1025 struct file_lock *fl; flock_lock_inode() local 1097 struct file_lock *fl, *tmp; posix_lock_inode() local 1346 posix_lock_file(struct file *filp, struct file_lock *fl, struct file_lock *conflock) posix_lock_file() argument 1360 posix_lock_inode_wait(struct inode *inode, struct file_lock *fl) posix_lock_inode_wait() argument 1377 lease_clear_pending(struct file_lock *fl, int arg) lease_clear_pending() argument 1389 lease_modify(struct file_lock *fl, int arg, struct list_head *dispose) lease_modify() argument 1424 struct file_lock *fl, *tmp; time_out_leases() local 1463 struct file_lock *fl; any_leases_conflict() local 1491 struct file_lock *new_fl, *fl, *tmp; __break_lease() local 1605 struct file_lock *fl; lease_get_mtime() local 1647 struct file_lock *fl; fcntl_getlease() local 1721 struct file_lock *fl, *my_fl = NULL, *lease; generic_add_lease() local 1830 struct file_lock *fl, *victim = NULL; generic_delete_lease() local 1966 struct file_lock *fl; do_fcntl_add_lease() local 2013 flock_lock_inode_wait(struct inode *inode, struct file_lock *fl) flock_lock_inode_wait() argument 2037 locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) locks_lock_inode_wait() argument 2072 struct file_lock fl; SYSCALL_DEFINE2() local 2132 vfs_test_lock(struct file *filp, struct file_lock *fl) vfs_test_lock() argument 2149 locks_translate_pid(struct file_lock *fl, struct pid_namespace *ns) locks_translate_pid() argument 2173 posix_lock_to_flock(struct flock *flock, struct file_lock *fl) posix_lock_to_flock() argument 2195 posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl) posix_lock_to_flock64() argument 2211 struct file_lock *fl; fcntl_getlk() local 2283 vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf) vfs_lock_file() argument 2293 do_lock_file_wait(struct file *filp, unsigned int cmd, struct file_lock *fl) do_lock_file_wait() argument 2318 check_fmode_for_setlk(struct file_lock *fl) check_fmode_for_setlk() argument 2418 struct file_lock *fl; fcntl_getlk64() local 2579 struct file_lock fl; locks_remove_flock() local 2601 struct file_lock *fl, *tmp; locks_remove_lease() local 2652 vfs_cancel_lock(struct file *filp, struct file_lock *fl) vfs_cancel_lock() argument 2693 lock_get_status(struct seq_file *f, struct file_lock *fl, loff_t id, char *pfx, int repeat) lock_get_status() argument 2831 struct file_lock *fl; __show_fd_locks() local [all...] |
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | ip6_flowlabel.c | 60 #define for_each_fl_rcu(hash, fl) \ 61 for (fl = rcu_dereference_bh(fl_ht[(hash)]); \ 62 fl != NULL; \ 63 fl = rcu_dereference_bh(fl->next)) 64 #define for_each_fl_continue_rcu(fl) \ 65 for (fl = rcu_dereference_bh(fl->next); \ 66 fl != NULL; \ 67 fl 76 struct ip6_flowlabel *fl; __fl_lookup() local 87 struct ip6_flowlabel *fl; fl_lookup() local 97 fl_shared_exclusive(struct ip6_flowlabel *fl) fl_shared_exclusive() argument 106 struct ip6_flowlabel *fl = container_of(head, struct ip6_flowlabel, rcu); fl_free_rcu() local 115 fl_free(struct ip6_flowlabel *fl) fl_free() argument 126 fl_release(struct ip6_flowlabel *fl) fl_release() argument 157 struct ip6_flowlabel *fl; ip6_fl_gc() local 194 struct ip6_flowlabel *fl; ip6_fl_purge() local 213 fl_intern(struct net *net, struct ip6_flowlabel *fl, __be32 label) fl_intern() argument 268 struct ip6_flowlabel *fl = sfl->fl; __fl6_sock_lookup() local 312 fl6_merge_options(struct ipv6_txoptions *opt_space, struct ip6_flowlabel *fl, struct ipv6_txoptions *fopt) fl6_merge_options() argument 350 fl6_renew(struct ip6_flowlabel *fl, unsigned long linger, unsigned long expires) fl6_renew() argument 376 struct ip6_flowlabel *fl = NULL; fl_create() local 492 fl_link(struct ipv6_pinfo *np, struct ipv6_fl_socklist *sfl, struct ip6_flowlabel *fl) fl_link() argument 597 struct ip6_flowlabel *fl = fl_lookup(net, freq->flr_label); ipv6_flowlabel_renew() local 613 struct ip6_flowlabel *fl, *fl1 = NULL; ipv6_flowlabel_get() local 757 struct ip6_flowlabel *fl = NULL; ip6fl_get_first() local 772 ip6fl_get_next(struct seq_file *seq, struct ip6_flowlabel *fl) ip6fl_get_next() argument 798 struct ip6_flowlabel *fl = ip6fl_get_first(seq); ip6fl_get_idx() local 818 struct ip6_flowlabel *fl; ip6fl_seq_next() local 840 struct ip6_flowlabel *fl = v; ip6fl_seq_show() local [all...] |
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | ip6_flowlabel.c | 60 #define for_each_fl_rcu(hash, fl) \ 61 for (fl = rcu_dereference(fl_ht[(hash)]); \ 62 fl != NULL; \ 63 fl = rcu_dereference(fl->next)) 64 #define for_each_fl_continue_rcu(fl) \ 65 for (fl = rcu_dereference(fl->next); \ 66 fl != NULL; \ 67 fl 76 struct ip6_flowlabel *fl; __fl_lookup() local 87 struct ip6_flowlabel *fl; fl_lookup() local 97 fl_shared_exclusive(struct ip6_flowlabel *fl) fl_shared_exclusive() argument 106 struct ip6_flowlabel *fl = container_of(head, struct ip6_flowlabel, rcu); fl_free_rcu() local 115 fl_free(struct ip6_flowlabel *fl) fl_free() argument 126 fl_release(struct ip6_flowlabel *fl) fl_release() argument 157 struct ip6_flowlabel *fl; ip6_fl_gc() local 194 struct ip6_flowlabel *fl; ip6_fl_purge() local 213 fl_intern(struct net *net, struct ip6_flowlabel *fl, __be32 label) fl_intern() argument 271 struct ip6_flowlabel *fl = sfl->fl; __fl6_sock_lookup() local 315 fl6_merge_options(struct ipv6_txoptions *opt_space, struct ip6_flowlabel *fl, struct ipv6_txoptions *fopt) fl6_merge_options() argument 353 fl6_renew(struct ip6_flowlabel *fl, unsigned long linger, unsigned long expires) fl6_renew() argument 379 struct ip6_flowlabel *fl = NULL; fl_create() local 495 fl_link(struct ipv6_pinfo *np, struct ipv6_fl_socklist *sfl, struct ip6_flowlabel *fl) fl_link() argument 600 struct ip6_flowlabel *fl = fl_lookup(net, freq->flr_label); ipv6_flowlabel_renew() local 616 struct ip6_flowlabel *fl, *fl1 = NULL; ipv6_flowlabel_get() local 760 struct ip6_flowlabel *fl = NULL; ip6fl_get_first() local 775 ip6fl_get_next(struct seq_file *seq, struct ip6_flowlabel *fl) ip6fl_get_next() argument 801 struct ip6_flowlabel *fl = ip6fl_get_first(seq); ip6fl_get_idx() local 821 struct ip6_flowlabel *fl; ip6fl_seq_next() local 843 struct ip6_flowlabel *fl = v; ip6fl_seq_show() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/filelock/ |
H A D | ofdlocks.c | 11 static int lock_set(int fd, struct flock *fl) in lock_set() argument 15 fl->l_pid = 0; // needed for OFD locks in lock_set() 16 fl->l_whence = SEEK_SET; in lock_set() 17 ret = fcntl(fd, F_OFD_SETLK, fl); in lock_set() 23 static int lock_get(int fd, struct flock *fl) in lock_get() argument 27 fl->l_pid = 0; // needed for OFD locks in lock_get() 28 fl->l_whence = SEEK_SET; in lock_get() 29 ret = fcntl(fd, F_OFD_GETLK, fl); in lock_get() 38 struct flock fl, fl2; in main() local 48 fl in main() [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | filelock.h | 63 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret), 65 TP_ARGS(inode, fl, ret), 68 __field(struct file_lock *, fl) 82 __entry->fl = fl ? fl : NULL; 85 __entry->fl_blocker = fl ? fl->fl_blocker : NULL; 86 __entry->fl_owner = fl ? fl [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | filelock.h | 63 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret), 65 TP_ARGS(inode, fl, ret), 68 __field(struct file_lock *, fl) 82 __entry->fl = fl ? fl : NULL; 85 __entry->fl_blocker = fl ? fl->fl_blocker : NULL; 86 __entry->fl_owner = fl ? fl [all...] |
/kernel/linux/linux-5.10/fs/afs/ |
H A D | flock.c | 17 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl); 18 static void afs_fl_release_private(struct file_lock *fl); 452 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk() argument 467 fl->fl_start, fl->fl_end, fl->fl_type, mode); in afs_do_setlk() 469 fl->fl_ops = &afs_lock_ops; in afs_do_setlk() 470 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk() 471 fl->fl_u.afs.state = AFS_LOCK_PENDING; in afs_do_setlk() 473 partial = (fl in afs_do_setlk() 702 afs_do_unlk(struct file *file, struct file_lock *fl) afs_do_unlk() argument 722 afs_do_getlk(struct file *file, struct file_lock *fl) afs_do_getlk() argument 764 afs_lock(struct file *file, int cmd, struct file_lock *fl) afs_lock() argument 803 afs_flock(struct file *file, int cmd, struct file_lock *fl) afs_flock() argument 848 afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl) afs_fl_copy_lock() argument 866 afs_fl_release_private(struct file_lock *fl) afs_fl_release_private() argument [all...] |
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | locks.c | 39 static void ceph_fl_release_lock(struct file_lock *fl) in ceph_fl_release_lock() argument 41 struct inode *inode = file_inode(fl->fl_file); in ceph_fl_release_lock() 60 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() 75 fl->fl_ops = &ceph_fl_lock_ops; in ceph_lock_message() 76 fl->fl_ops->fl_copy_lock(fl, NULL); in ceph_lock_message() 90 if (LLONG_MAX == fl->fl_end) in ceph_lock_message() 93 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message() 95 owner = secure_addr(fl in ceph_lock_message() 59 ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, int cmd, u8 wait, struct file_lock *fl) ceph_lock_message() argument 209 try_unlock_file(struct file *file, struct file_lock *fl) try_unlock_file() argument 228 ceph_lock(struct file *file, int cmd, struct file_lock *fl) ceph_lock() argument 294 ceph_flock(struct file *file, int cmd, struct file_lock *fl) ceph_flock() argument [all...] |
H A D | util.c | 31 void ceph_file_layout_from_legacy(struct ceph_file_layout *fl, in ceph_file_layout_from_legacy() argument 34 fl->stripe_unit = le32_to_cpu(legacy->fl_stripe_unit); in ceph_file_layout_from_legacy() 35 fl->stripe_count = le32_to_cpu(legacy->fl_stripe_count); in ceph_file_layout_from_legacy() 36 fl->object_size = le32_to_cpu(legacy->fl_object_size); in ceph_file_layout_from_legacy() 37 fl->pool_id = le32_to_cpu(legacy->fl_pg_pool); in ceph_file_layout_from_legacy() 38 if (fl->pool_id == 0 && fl->stripe_unit == 0 && in ceph_file_layout_from_legacy() 39 fl->stripe_count == 0 && fl->object_size == 0) in ceph_file_layout_from_legacy() 40 fl in ceph_file_layout_from_legacy() 43 ceph_file_layout_to_legacy(struct ceph_file_layout *fl, struct ceph_file_layout_legacy *legacy) ceph_file_layout_to_legacy() argument [all...] |
/kernel/linux/linux-6.6/fs/afs/ |
H A D | flock.c | 17 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl); 18 static void afs_fl_release_private(struct file_lock *fl); 452 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk() argument 467 fl->fl_start, fl->fl_end, fl->fl_type, mode); in afs_do_setlk() 469 fl->fl_ops = &afs_lock_ops; in afs_do_setlk() 470 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk() 471 fl->fl_u.afs.state = AFS_LOCK_PENDING; in afs_do_setlk() 473 partial = (fl in afs_do_setlk() 702 afs_do_unlk(struct file *file, struct file_lock *fl) afs_do_unlk() argument 722 afs_do_getlk(struct file *file, struct file_lock *fl) afs_do_getlk() argument 764 afs_lock(struct file *file, int cmd, struct file_lock *fl) afs_lock() argument 799 afs_flock(struct file *file, int cmd, struct file_lock *fl) afs_flock() argument 844 afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl) afs_fl_copy_lock() argument 862 afs_fl_release_private(struct file_lock *fl) afs_fl_release_private() argument [all...] |
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | locks.c | 42 * Do not use the 'fl->fl_file' in release function, which 45 static void ceph_fl_release_lock(struct file_lock *fl) in ceph_fl_release_lock() argument 47 struct inode *inode = fl->fl_u.ceph.inode; in ceph_fl_release_lock() 64 fl->fl_u.ceph.inode = NULL; in ceph_fl_release_lock() 77 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() 92 fl->fl_ops = &ceph_fl_lock_ops; in ceph_lock_message() 93 fl->fl_ops->fl_copy_lock(fl, NULL); in ceph_lock_message() 107 if (LLONG_MAX == fl->fl_end) in ceph_lock_message() 110 length = fl in ceph_lock_message() 76 ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, int cmd, u8 wait, struct file_lock *fl) ceph_lock_message() argument 226 try_unlock_file(struct file *file, struct file_lock *fl) try_unlock_file() argument 245 ceph_lock(struct file *file, int cmd, struct file_lock *fl) ceph_lock() argument 311 ceph_flock(struct file *file, int cmd, struct file_lock *fl) ceph_flock() argument [all...] |
H A D | util.c | 31 void ceph_file_layout_from_legacy(struct ceph_file_layout *fl, in ceph_file_layout_from_legacy() argument 34 fl->stripe_unit = le32_to_cpu(legacy->fl_stripe_unit); in ceph_file_layout_from_legacy() 35 fl->stripe_count = le32_to_cpu(legacy->fl_stripe_count); in ceph_file_layout_from_legacy() 36 fl->object_size = le32_to_cpu(legacy->fl_object_size); in ceph_file_layout_from_legacy() 37 fl->pool_id = le32_to_cpu(legacy->fl_pg_pool); in ceph_file_layout_from_legacy() 38 if (fl->pool_id == 0 && fl->stripe_unit == 0 && in ceph_file_layout_from_legacy() 39 fl->stripe_count == 0 && fl->object_size == 0) in ceph_file_layout_from_legacy() 40 fl in ceph_file_layout_from_legacy() 43 ceph_file_layout_to_legacy(struct ceph_file_layout *fl, struct ceph_file_layout_legacy *legacy) ceph_file_layout_to_legacy() argument [all...] |
/kernel/linux/linux-6.6/fs/lockd/ |
H A D | svclock.c | 151 struct file_lock *fl; in nlmsvc_lookup_block() local 154 file, lock->fl.fl_pid, in nlmsvc_lookup_block() 155 (long long)lock->fl.fl_start, in nlmsvc_lookup_block() 156 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block() 159 fl = &block->b_call->a_args.lock.fl; in nlmsvc_lookup_block() 161 block->b_file, fl->fl_pid, in nlmsvc_lookup_block() 162 (long long)fl->fl_start, in nlmsvc_lookup_block() 163 (long long)fl in nlmsvc_lookup_block() 410 nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host, pid_t pid) nlmsvc_locks_init_private() argument 713 struct file_lock *fl = &block->b_call->a_args.lock.fl; nlmsvc_cancel_blocked() local 742 nlmsvc_grant_deferred(struct file_lock *fl, int result) nlmsvc_grant_deferred() argument 781 nlmsvc_notify_blocked(struct file_lock *fl) nlmsvc_notify_blocked() argument 968 struct file_lock *fl; nlmsvc_grant_reply() local [all...] |
H A D | clntproc.c | 34 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host); 129 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs() argument 136 memcpy(&lock->fh, NFS_FH(file_inode(fl->fl_file)), sizeof(struct nfs_fh)); in nlmclnt_setlockargs() 140 (unsigned int)fl->fl_u.nfs_fl.owner->pid, in nlmclnt_setlockargs() 142 lock->svid = fl->fl_u.nfs_fl.owner->pid; in nlmclnt_setlockargs() 143 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs() 144 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs() 145 lock->fl in nlmclnt_setlockargs() 161 nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) nlmclnt_proc() argument 431 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) nlmclnt_test() argument 463 nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) nlmclnt_locks_copy_lock() argument 472 nlmclnt_locks_release_private(struct file_lock *fl) nlmclnt_locks_release_private() argument 485 nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host) nlmclnt_locks_init_private() argument 493 do_vfs_lock(struct file_lock *fl) do_vfs_lock() argument 519 nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) nlmclnt_lock() argument 640 nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl, struct nlm_rqst *req) nlmclnt_reclaim() argument 681 nlmclnt_unlock(struct nlm_rqst *req, struct file_lock *fl) nlmclnt_unlock() argument 781 nlmclnt_cancel(struct nlm_host *host, int block, struct file_lock *fl) nlmclnt_cancel() argument [all...] |
/kernel/linux/linux-5.10/fs/lockd/ |
H A D | clntproc.c | 31 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host); 126 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs() argument 133 memcpy(&lock->fh, NFS_FH(locks_inode(fl->fl_file)), sizeof(struct nfs_fh)); in nlmclnt_setlockargs() 137 (unsigned int)fl->fl_u.nfs_fl.owner->pid, in nlmclnt_setlockargs() 139 lock->svid = fl->fl_u.nfs_fl.owner->pid; in nlmclnt_setlockargs() 140 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs() 141 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs() 142 lock->fl in nlmclnt_setlockargs() 158 nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) nlmclnt_proc() argument 428 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) nlmclnt_test() argument 457 nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) nlmclnt_locks_copy_lock() argument 466 nlmclnt_locks_release_private(struct file_lock *fl) nlmclnt_locks_release_private() argument 479 nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host) nlmclnt_locks_init_private() argument 487 do_vfs_lock(struct file_lock *fl) do_vfs_lock() argument 513 nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) nlmclnt_lock() argument 620 nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl, struct nlm_rqst *req) nlmclnt_reclaim() argument 661 nlmclnt_unlock(struct nlm_rqst *req, struct file_lock *fl) nlmclnt_unlock() argument 758 nlmclnt_cancel(struct nlm_host *host, int block, struct file_lock *fl) nlmclnt_cancel() argument [all...] |
H A D | svclock.c | 148 struct file_lock *fl; in nlmsvc_lookup_block() local 151 file, lock->fl.fl_pid, in nlmsvc_lookup_block() 152 (long long)lock->fl.fl_start, in nlmsvc_lookup_block() 153 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block() 155 fl = &block->b_call->a_args.lock.fl; in nlmsvc_lookup_block() 157 block->b_file, fl->fl_pid, in nlmsvc_lookup_block() 158 (long long)fl->fl_start, in nlmsvc_lookup_block() 159 (long long)fl in nlmsvc_lookup_block() 398 nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host, pid_t pid) nlmsvc_locks_init_private() argument 716 nlmsvc_grant_deferred(struct file_lock *fl, int result) nlmsvc_grant_deferred() argument 755 nlmsvc_notify_blocked(struct file_lock *fl) nlmsvc_notify_blocked() argument [all...] |
/kernel/linux/linux-5.10/fs/dlm/ |
H A D | plock.c | 23 void *fl; member 26 int (*callback)(struct file_lock *fl, int result); 104 int cmd, struct file_lock *fl) in dlm_posix_lock() 122 op->info.pid = fl->fl_pid; in dlm_posix_lock() 123 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_lock() 127 op->info.start = fl->fl_start; in dlm_posix_lock() 128 op->info.end = fl->fl_end; in dlm_posix_lock() 130 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in dlm_posix_lock() 140 op->info.owner = (__u64) fl in dlm_posix_lock() 103 dlm_posix_lock(dlm_lockspace_t *lockspace, u64 number, struct file *file, int cmd, struct file_lock *fl) dlm_posix_lock() argument 199 struct file_lock *fl; dlm_plock_callback() local 251 dlm_posix_unlock(dlm_lockspace_t *lockspace, u64 number, struct file *file, struct file_lock *fl) dlm_posix_unlock() argument 325 dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file, struct file_lock *fl) dlm_posix_get() argument [all...] |
/kernel/linux/linux-6.6/fs/dlm/ |
H A D | plock.c | 26 void *fl; member 29 int (*callback)(struct file_lock *fl, int result); 123 int cmd, struct file_lock *fl) in dlm_posix_lock() 141 op->info.pid = fl->fl_pid; in dlm_posix_lock() 142 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_lock() 146 op->info.start = fl->fl_start; in dlm_posix_lock() 147 op->info.end = fl->fl_end; in dlm_posix_lock() 149 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in dlm_posix_lock() 159 op->info.owner = (__u64) fl in dlm_posix_lock() 122 dlm_posix_lock(dlm_lockspace_t *lockspace, u64 number, struct file *file, int cmd, struct file_lock *fl) dlm_posix_lock() argument 246 struct file_lock *fl; dlm_plock_callback() local 292 dlm_posix_unlock(dlm_lockspace_t *lockspace, u64 number, struct file *file, struct file_lock *fl) dlm_posix_unlock() argument 366 dlm_posix_cancel(dlm_lockspace_t *lockspace, u64 number, struct file *file, struct file_lock *fl) dlm_posix_cancel() argument 429 dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file, struct file_lock *fl) dlm_posix_get() argument [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | fastrpc.c | 195 struct fastrpc_user *fl; member 217 struct fastrpc_user *fl; member 246 struct fastrpc_user *fl; member 320 int vmid = map->fl->cctx->vmperms[0].vmid; in fastrpc_free_map() 329 dev_err(map->fl->sctx->dev, "Failed to assign memory phys 0x%llx size 0x%llx err %d", in fastrpc_free_map() 340 if (map->fl) { in fastrpc_free_map() 341 spin_lock(&map->fl->lock); in fastrpc_free_map() 343 spin_unlock(&map->fl->lock); in fastrpc_free_map() 344 map->fl = NULL; in fastrpc_free_map() 365 static int fastrpc_map_lookup(struct fastrpc_user *fl, in argument 402 __fastrpc_buf_alloc(struct fastrpc_user *fl, struct device *dev, u64 size, struct fastrpc_buf **obuf) __fastrpc_buf_alloc() argument 435 fastrpc_buf_alloc(struct fastrpc_user *fl, struct device *dev, u64 size, struct fastrpc_buf **obuf) fastrpc_buf_alloc() argument 453 fastrpc_remote_heap_alloc(struct fastrpc_user *fl, struct device *dev, u64 size, struct fastrpc_buf **obuf) fastrpc_remote_heap_alloc() argument 755 fastrpc_map_create(struct fastrpc_user *fl, int fd, u64 len, u32 attr, struct fastrpc_map **ppmap) fastrpc_map_create() argument 1065 struct fastrpc_user *fl = ctx->fl; fastrpc_put_args() local 1110 struct fastrpc_user *fl = ctx->fl; fastrpc_invoke_send() local 1137 fastrpc_internal_invoke(struct fastrpc_user *fl, u32 kernel, u32 handle, u32 sc, struct fastrpc_invoke_args *args) fastrpc_internal_invoke() argument 1216 is_session_rejected(struct fastrpc_user *fl, bool unsigned_pd_request) is_session_rejected() argument 1234 fastrpc_init_create_static_process(struct fastrpc_user *fl, char __user *argp) fastrpc_init_create_static_process() argument 1352 fastrpc_init_create_process(struct fastrpc_user *fl, char __user *argp) fastrpc_init_create_process() argument 1498 fastrpc_release_current_dsp_process(struct fastrpc_user *fl) fastrpc_release_current_dsp_process() argument 1516 struct fastrpc_user *fl = (struct fastrpc_user *)file->private_data; fastrpc_device_release() local 1559 struct fastrpc_user *fl = NULL; fastrpc_device_open() local 1599 fastrpc_dmabuf_alloc(struct fastrpc_user *fl, char __user *argp) fastrpc_dmabuf_alloc() argument 1644 fastrpc_init_attach(struct fastrpc_user *fl, int pd) fastrpc_init_attach() argument 1660 fastrpc_invoke(struct fastrpc_user *fl, char __user *argp) fastrpc_invoke() argument 1690 fastrpc_get_info_from_dsp(struct fastrpc_user *fl, uint32_t *dsp_attr_buf, uint32_t dsp_attr_buf_len) fastrpc_get_info_from_dsp() argument 1710 fastrpc_get_info_from_kernel(struct fastrpc_ioctl_capability *cap, struct fastrpc_user *fl) fastrpc_get_info_from_kernel() argument 1754 fastrpc_get_dsp_info(struct fastrpc_user *fl, char __user *argp) fastrpc_get_dsp_info() argument 1791 fastrpc_req_munmap_impl(struct fastrpc_user *fl, struct fastrpc_buf *buf) fastrpc_req_munmap_impl() argument 1822 fastrpc_req_munmap(struct fastrpc_user *fl, char __user *argp) fastrpc_req_munmap() argument 1849 fastrpc_req_mmap(struct fastrpc_user *fl, char __user *argp) fastrpc_req_mmap() argument 1949 fastrpc_req_mem_unmap_impl(struct fastrpc_user *fl, struct fastrpc_mem_unmap *req) fastrpc_req_mem_unmap_impl() argument 1993 fastrpc_req_mem_unmap(struct fastrpc_user *fl, char __user *argp) fastrpc_req_mem_unmap() argument 2003 fastrpc_req_mem_map(struct fastrpc_user *fl, char __user *argp) fastrpc_req_mem_map() argument 2083 struct fastrpc_user *fl = (struct fastrpc_user *)file->private_data; fastrpc_device_ioctl() local [all...] |
/kernel/linux/linux-6.6/fs/9p/ |
H A D | vfs_file.c | 98 * @fl: file lock structure 104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument 108 p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl); in v9fs_file_lock() 110 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock() 118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument 130 BUG_ON((fl->fl_flags & FL_POSIX) != FL_POSIX); in v9fs_file_do_lock() 132 res = locks_lock_file_wait(filp, fl); in v9fs_file_do_lock() 139 switch (fl->fl_type) { in v9fs_file_do_lock() 150 flock.start = fl->fl_start; in v9fs_file_do_lock() 151 if (fl in v9fs_file_do_lock() 223 v9fs_file_getlock(struct file *filp, struct file_lock *fl) v9fs_file_getlock() argument 288 v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) v9fs_file_lock_dotl() argument 318 v9fs_file_flock_dotl(struct file *filp, int cmd, struct file_lock *fl) v9fs_file_flock_dotl() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | thread_info.h | 149 #define set_syscall_work(fl) \ 150 set_bit(SYSCALL_WORK_BIT_##fl, ¤t_thread_info()->syscall_work) 151 #define test_syscall_work(fl) \ 152 test_bit(SYSCALL_WORK_BIT_##fl, ¤t_thread_info()->syscall_work) 153 #define clear_syscall_work(fl) \ 154 clear_bit(SYSCALL_WORK_BIT_##fl, ¤t_thread_info()->syscall_work) 156 #define set_task_syscall_work(t, fl) \ 157 set_bit(SYSCALL_WORK_BIT_##fl, &task_thread_info(t)->syscall_work) 158 #define test_task_syscall_work(t, fl) \ 159 test_bit(SYSCALL_WORK_BIT_##fl, [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_catalog.c | 568 {.fl = 4, .lut = 0x1b}, 569 {.fl = 5, .lut = 0x5b}, 570 {.fl = 6, .lut = 0x15b}, 571 {.fl = 7, .lut = 0x55b}, 572 {.fl = 8, .lut = 0x155b}, 573 {.fl = 9, .lut = 0x555b}, 574 {.fl = 10, .lut = 0x1555b}, 575 {.fl = 11, .lut = 0x5555b}, 576 {.fl = 12, .lut = 0x15555b}, 577 {.fl [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 240 * @fl: the Free List 247 static inline unsigned int fl_cap(const struct sge_fl *fl) in fl_cap() argument 249 return fl->size - FL_PER_EQ_UNIT; in fl_cap() 255 * @fl: the Free List 262 const struct sge_fl *fl) in fl_starving() 266 return fl->avail - fl->pend_cred <= s->fl_starve_thres; in fl_starving() 466 * @fl: the SGE Free List to free buffers from 473 static void free_rx_bufs(struct adapter *adapter, struct sge_fl *fl, int n) in free_rx_bufs() argument 476 struct rx_sw_desc *sdesc = &fl in free_rx_bufs() 261 fl_starving(const struct adapter *adapter, const struct sge_fl *fl) fl_starving() argument 503 unmap_rx_buf(struct adapter *adapter, struct sge_fl *fl) unmap_rx_buf() argument 525 ring_fl_db(struct adapter *adapter, struct sge_fl *fl) ring_fl_db() argument 604 refill_fl(struct adapter *adapter, struct sge_fl *fl, int n, gfp_t gfp) refill_fl() argument 725 __refill_fl(struct adapter *adapter, struct sge_fl *fl) __refill_fl() argument 1711 restore_rx_bufs(const struct pkt_gl *gl, struct sge_fl *fl, int frags) restore_rx_bufs() argument 2085 struct sge_fl *fl = s->egr_map[id]; sge_rx_timer_cb() local 2204 t4vf_sge_alloc_rxq(struct adapter *adapter, struct sge_rspq *rspq, bool iqasynch, struct net_device *dev, int intr_dest, struct sge_fl *fl, rspq_handler_t hnd) t4vf_sge_alloc_rxq() argument 2530 free_rspq_fl(struct adapter *adapter, struct sge_rspq *rspq, struct sge_fl *fl) free_rspq_fl() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 240 * @fl: the Free List 247 static inline unsigned int fl_cap(const struct sge_fl *fl) in fl_cap() argument 249 return fl->size - FL_PER_EQ_UNIT; in fl_cap() 255 * @fl: the Free List 262 const struct sge_fl *fl) in fl_starving() 266 return fl->avail - fl->pend_cred <= s->fl_starve_thres; in fl_starving() 466 * @fl: the SGE Free List to free buffers from 473 static void free_rx_bufs(struct adapter *adapter, struct sge_fl *fl, int n) in free_rx_bufs() argument 476 struct rx_sw_desc *sdesc = &fl in free_rx_bufs() 261 fl_starving(const struct adapter *adapter, const struct sge_fl *fl) fl_starving() argument 503 unmap_rx_buf(struct adapter *adapter, struct sge_fl *fl) unmap_rx_buf() argument 525 ring_fl_db(struct adapter *adapter, struct sge_fl *fl) ring_fl_db() argument 604 refill_fl(struct adapter *adapter, struct sge_fl *fl, int n, gfp_t gfp) refill_fl() argument 725 __refill_fl(struct adapter *adapter, struct sge_fl *fl) __refill_fl() argument 1708 restore_rx_bufs(const struct pkt_gl *gl, struct sge_fl *fl, int frags) restore_rx_bufs() argument 2082 struct sge_fl *fl = s->egr_map[id]; sge_rx_timer_cb() local 2201 t4vf_sge_alloc_rxq(struct adapter *adapter, struct sge_rspq *rspq, bool iqasynch, struct net_device *dev, int intr_dest, struct sge_fl *fl, rspq_handler_t hnd) t4vf_sge_alloc_rxq() argument 2527 free_rspq_fl(struct adapter *adapter, struct sge_rspq *rspq, struct sge_fl *fl) free_rspq_fl() argument [all...] |