/linux-6.3-rc2/net/ipv6/ |
A D | ip6_flowlabel.c | 63 fl = rcu_dereference_bh(fl->next)) 65 for (fl = rcu_dereference_bh(fl->next); \ 67 fl = rcu_dereference_bh(fl->next)) 91 if (fl && !atomic_inc_not_zero(&fl->users)) in fl_lookup() 120 if (fl_shared_exclusive(fl) || fl->opt) in fl_free() 248 fl->next = fl_ht[FL_HASH(fl->label)]; in fl_intern() 268 struct ip6_flowlabel *fl = sfl->fl; in __fl6_sock_lookup() local 366 fl->expires = fl->lastuse + expires; in fl6_renew() 387 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in fl_create() 401 memset(fl->opt, 0, sizeof(*fl->opt)); in fl_create() [all …]
|
/linux-6.3-rc2/fs/ |
A D | locks.c | 77 #define IS_REMOTELCK(fl) (fl->fl_pid <= 0) argument 245 fl->fl_owner, fl->fl_flags, fl->fl_type, fl->fl_pid); in locks_check_ctx_file_list() 290 fl->fl_ops->fl_release_private(fl); in locks_release_private() 393 fl->fl_ops->fl_copy_lock(new, fl); in locks_copy_lock() 487 fl->fl_end = fl->fl_start - 1; in flock64_to_posix_lock() 969 fl = fl->fl_blocker; in what_owner_is_waiting_for() 1522 if (fl->fl_lmops->lm_break(fl)) in __break_lease() 1597 if (fl && (fl->fl_type == F_WRLCK)) in lease_get_mtime() 2180 fl->fl_end - fl->fl_start + 1; in posix_lock_to_flock() 2192 fl->fl_end - fl->fl_start + 1; in posix_lock_to_flock64() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | filelock.h | 82 __entry->fl = fl ? fl : NULL; 86 __entry->fl_owner = fl ? fl->fl_owner : NULL; 87 __entry->fl_pid = fl ? fl->fl_pid : 0; 88 __entry->fl_flags = fl ? fl->fl_flags : 0; 89 __entry->fl_type = fl ? fl->fl_type : 0; 90 __entry->fl_start = fl ? fl->fl_start : 0; 91 __entry->fl_end = fl ? fl->fl_end : 0; 137 __entry->fl = fl ? fl : NULL; 141 __entry->fl_owner = fl ? fl->fl_owner : NULL; 142 __entry->fl_flags = fl ? fl->fl_flags : 0; [all …]
|
/linux-6.3-rc2/fs/lockd/ |
A D | clntproc.c | 141 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs() 142 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs() 143 lock->fl.fl_type = fl->fl_type; in nlmclnt_setlockargs() 192 fl->fl_ops->fl_release_private(fl); in nlmclnt_proc() 193 fl->fl_ops = NULL; in nlmclnt_proc() 445 fl->fl_start = req->a_res.lock.fl.fl_start; in nlmclnt_test() 446 fl->fl_end = req->a_res.lock.fl.fl_end; in nlmclnt_test() 447 fl->fl_type = req->a_res.lock.fl.fl_type; in nlmclnt_test() 448 fl->fl_pid = -req->a_res.lock.fl.fl_pid; in nlmclnt_test() 490 return locks_lock_file_wait(fl->fl_file, fl); in do_vfs_lock() [all …]
|
A D | svclock.c | 154 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block() 156 fl = &block->b_call->a_args.lock.fl; in nlmsvc_lookup_block() 160 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block() 162 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) { in nlmsvc_lookup_block() 411 locks_copy_lock(&call->a_args.lock.fl, &lock->fl); in nlmsvc_setgrantargs() 484 lock->fl.fl_type, lock->fl.fl_pid, in nlmsvc_lock() 623 lock->fl.fl_type, (long long)lock->fl.fl_start, in nlmsvc_testlock() 629 conflock->fl.fl_type = lock->fl.fl_type; in nlmsvc_testlock() 630 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock() 631 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock() [all …]
|
A D | xdr.c | 74 struct file_lock *fl = &lock->fl; in svcxdr_decode_lock() local 90 locks_init_lock(fl); in svcxdr_decode_lock() 91 fl->fl_flags = FL_POSIX; in svcxdr_decode_lock() 92 fl->fl_type = F_RDLCK; in svcxdr_decode_lock() 96 fl->fl_end = OFFSET_MAX; in svcxdr_decode_lock() 98 fl->fl_end = s32_to_loff_t(end); in svcxdr_decode_lock() 106 const struct file_lock *fl = &lock->fl; in svcxdr_encode_holder() local 117 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder() 120 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder() 226 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs() [all …]
|
A D | xdr4.c | 65 struct file_lock *fl = &lock->fl; in svcxdr_decode_lock() local 80 locks_init_lock(fl); in svcxdr_decode_lock() 81 fl->fl_flags = FL_POSIX; in svcxdr_decode_lock() 82 fl->fl_type = F_RDLCK; in svcxdr_decode_lock() 90 const struct file_lock *fl = &lock->fl; in svcxdr_encode_holder() local 101 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder() 104 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder() 151 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs() 171 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs() 210 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs() [all …]
|
A D | clntlock.c | 100 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() argument 107 block->b_lock = fl; in nlmclnt_prepare_block() 166 const struct file_lock *fl = &lock->fl; in nlmclnt_grant() local 179 if (fl_blocked->fl_start != fl->fl_start) in nlmclnt_grant() 181 if (fl_blocked->fl_end != fl->fl_end) in nlmclnt_grant() 234 struct file_lock *fl, *next; in reclaimer() local 260 list_for_each_entry_safe(fl, next, &host->h_reclaim, fl_u.nfs_fl.list) { in reclaimer() 261 list_del_init(&fl->fl_u.nfs_fl.list); in reclaimer() 271 if (nlmclnt_reclaim(host, fl, req) != 0) in reclaimer() 273 list_add_tail(&fl->fl_u.nfs_fl.list, &host->h_granted); in reclaimer()
|
/linux-6.3-rc2/fs/afs/ |
A D | flock.c | 467 fl->fl_start, fl->fl_end, fl->fl_type, mode); in afs_do_setlk() 473 partial = (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX); in afs_do_setlk() 648 if (fl->fl_u.afs.state >= 0 && fl->fl_u.afs.state != AFS_LOCK_GRANTED) { in afs_do_setlk() 677 ret = fl->fl_u.afs.state; in afs_do_setlk() 733 fl->fl_type = F_UNLCK; in afs_do_getlk() 746 fl->fl_type = F_RDLCK; in afs_do_getlk() 749 fl->fl_start = 0; in afs_do_getlk() 751 fl->fl_pid = 0; in afs_do_getlk() 772 fl->fl_type, fl->fl_flags, in afs_lock() 773 (long long) fl->fl_start, (long long) fl->fl_end); in afs_lock() [all …]
|
/linux-6.3-rc2/fs/ceph/ |
A D | locks.c | 64 fl->fl_u.ceph.inode = NULL; in ceph_fl_release_lock() 93 fl->fl_ops->fl_copy_lock(fl, NULL); in ceph_lock_message() 110 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message() 116 (int)operation, owner, (u64)fl->fl_pid, fl->fl_start, length, in ceph_lock_message() 117 wait, fl->fl_type); in ceph_lock_message() 134 fl->fl_type = F_RDLCK; in ceph_lock_message() 136 fl->fl_type = F_WRLCK; in ceph_lock_message() 138 fl->fl_type = F_UNLCK; in ceph_lock_message() 144 fl->fl_end = length -1; in ceph_lock_message() 146 fl->fl_end = 0; in ceph_lock_message() [all …]
|
A D | util.c | 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->pool_id = -1; in ceph_file_layout_from_legacy() 46 legacy->fl_stripe_unit = cpu_to_le32(fl->stripe_unit); in ceph_file_layout_to_legacy() 48 legacy->fl_object_size = cpu_to_le32(fl->object_size); in ceph_file_layout_to_legacy() 49 if (fl->pool_id >= 0) in ceph_file_layout_to_legacy() [all …]
|
/linux-6.3-rc2/fs/dlm/ |
A D | plock.c | 24 void *fl; member 132 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in dlm_posix_lock() 146 op_data->fl = fl; in dlm_posix_lock() 203 struct file_lock *fl; in dlm_plock_callback() local 213 fl = op_data->fl; in dlm_plock_callback() 236 rv = notify(fl, 0); in dlm_plock_callback() 286 if (fl->fl_lmops && fl->fl_lmops->lm_grant) in dlm_posix_unlock() 312 fl->fl_flags = fl_flags; in dlm_posix_unlock() 341 if (fl->fl_lmops && fl->fl_lmops->lm_grant) in dlm_posix_get() 356 fl->fl_type = F_UNLCK; in dlm_posix_get() [all …]
|
/linux-6.3-rc2/drivers/misc/ |
A D | fastrpc.c | 412 buf->fl = fl; in __fastrpc_buf_alloc() 444 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc() 769 map->fl = fl; in fastrpc_map_create() 803 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_map_create() 1049 struct fastrpc_user *fl = ctx->fl; in fastrpc_put_args() local 1093 struct fastrpc_user *fl = ctx->fl; in fastrpc_invoke_send() local 1206 if (!fl->is_secure_dev && fl->cctx->secure) { in is_session_rejected() 1272 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_init_create_static_process() 1393 err = fastrpc_buf_alloc(fl, fl->sctx->dev, memlen, in fastrpc_init_create_process() 1547 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in fastrpc_device_open() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | thread_info.h | 149 #define set_syscall_work(fl) \ argument 151 #define test_syscall_work(fl) \ argument 153 #define clear_syscall_work(fl) \ argument 156 #define set_task_syscall_work(t, fl) \ argument 158 #define test_task_syscall_work(t, fl) \ argument 160 #define clear_task_syscall_work(t, fl) \ argument 165 #define set_syscall_work(fl) \ argument 167 #define test_syscall_work(fl) \ argument 169 #define clear_syscall_work(fl) \ argument 172 #define set_task_syscall_work(t, fl) \ argument [all …]
|
A D | filelock.h | 152 void locks_free_lock(struct file_lock *fl); 165 int vfs_cancel_lock(struct file *filp, struct file_lock *fl); 167 int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl); 231 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock() argument 256 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock() argument 261 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file() argument 272 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock() argument 278 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file() argument 283 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock() argument 321 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify() argument [all …]
|
/linux-6.3-rc2/fs/nfs/filelayout/ |
A D | filelayout.c | 568 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_deviceid() 638 if (fl->fh_array) { in _filelayout_free_lseg() 646 kfree(fl); in _filelayout_free_lseg() 677 memcpy(&fl->deviceid, p, sizeof(fl->deviceid)); in filelayout_decode_layout() 695 __func__, nfl_util, fl->num_fh, fl->first_stripe_index, in filelayout_decode_layout() 700 if (fl->num_fh > in filelayout_decode_layout() 705 fl->fh_array = kcalloc(fl->num_fh, sizeof(fl->fh_array[0]), in filelayout_decode_layout() 730 memcpy(fl->fh_array[i]->data, p, fl->fh_array[i]->size); in filelayout_decode_layout() 774 fl = kzalloc(sizeof(*fl), gfp_flags); in filelayout_alloc_lseg() 775 if (!fl) in filelayout_alloc_lseg() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4vf/ |
A D | sge.c | 484 if (++fl->cidx == fl->size) in free_rx_bufs() 512 if (++fl->cidx == fl->size) in unmap_rx_buf() 611 __be64 *d = &fl->desc[fl->pidx]; in refill_fl() 667 if (++fl->pidx == fl->size) { in refill_fl() 696 if (++fl->pidx == fl->size) { in refill_fl() 1715 fl->cidx = fl->size - 1; in restore_rx_bufs() 1718 sdesc = &fl->sdesc[fl->cidx]; in restore_rx_bufs() 2391 if (fl && fl->desc) { in t4vf_sge_alloc_rxq() 2395 fl->desc, fl->addr); in t4vf_sge_alloc_rxq() 2544 free_rx_bufs(adapter, fl, fl->avail); in free_rspq_fl() [all …]
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | locks.c | 24 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument 30 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock() 72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock() 89 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock() 103 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock() 108 return locks_lock_file_wait(file, fl); in ocfs2_flock() 110 if (fl->fl_type == F_UNLCK) in ocfs2_flock() 111 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock() 113 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock() 116 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument [all …]
|
/linux-6.3-rc2/fs/9p/ |
A D | vfs_file.c | 153 switch (fl->fl_type) { in v9fs_file_do_lock() 168 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock() 225 fl_type = fl->fl_type; in v9fs_file_do_lock() 226 fl->fl_type = F_UNLCK; in v9fs_file_do_lock() 229 fl->fl_type = fl_type; in v9fs_file_do_lock() 261 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock() 271 fl->fl_type = F_RDLCK; in v9fs_file_getlock() 274 fl->fl_type = F_WRLCK; in v9fs_file_getlock() 277 fl->fl_type = F_UNLCK; in v9fs_file_getlock() 308 filp, cmd, fl, filp); in v9fs_file_lock_dotl() [all …]
|
/linux-6.3-rc2/fs/nfsd/ |
A D | flexfilelayout.c | 31 struct pnfs_ff_layout *fl; in nfsd4_ff_proc_layoutget() local 39 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in nfsd4_ff_proc_layoutget() 40 if (!fl) in nfsd4_ff_proc_layoutget() 42 args->lg_content = fl; in nfsd4_ff_proc_layoutget() 49 fl->flags = FF_FLAGS_NO_LAYOUTCOMMIT | FF_FLAGS_NO_IO_THRU_MDS | in nfsd4_ff_proc_layoutget() 55 fl->uid = make_kuid(&init_user_ns, u); in nfsd4_ff_proc_layoutget() 57 fl->uid = inode->i_uid; in nfsd4_ff_proc_layoutget() 58 fl->gid = inode->i_gid; in nfsd4_ff_proc_layoutget() 60 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget() 64 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget() [all …]
|
A D | flexfilelayoutxdr.c | 22 struct pnfs_ff_layout *fl = lgp->lg_content; in nfsd4_ff_encode_layoutget() local 33 fh_len = 4 + fl->fh.size; in nfsd4_ff_encode_layoutget() 35 uid.len = sprintf(uid.buf, "%u", from_kuid(&init_user_ns, fl->uid)); in nfsd4_ff_encode_layoutget() 36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); in nfsd4_ff_encode_layoutget() 57 p = xdr_encode_opaque_fixed(p, &fl->deviceid, in nfsd4_ff_encode_layoutget() 62 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget() 63 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget() 67 p = xdr_encode_opaque(p, fl->fh.data, fl->fh.size); in nfsd4_ff_encode_layoutget() 72 *p++ = cpu_to_be32(fl->flags); in nfsd4_ff_encode_layoutget()
|
/linux-6.3-rc2/drivers/mtd/parsers/ |
A D | redboot.c | 221 prev = &fl; in parse_redboot_partitions() 230 if (fl->img->flash_base) { in parse_redboot_partitions() 259 if (fl->img->flash_base) { in parse_redboot_partitions() 267 parts[i].size = fl->img->size; in parse_redboot_partitions() 271 strcpy(names, fl->img->name); in parse_redboot_partitions() 282 …if (fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_ba… in parse_redboot_partitions() 289 tmp_fl = fl; in parse_redboot_partitions() 290 fl = fl->next; in parse_redboot_partitions() 296 while (fl) { in parse_redboot_partitions() 297 struct fis_list *old = fl; in parse_redboot_partitions() [all …]
|
/linux-6.3-rc2/drivers/net/wireguard/ |
A D | socket.c | 23 struct flowi4 fl = { in send4() local 46 fl.fl4_sport = inet_sk(sock)->inet_sport; in send4() 49 rt = dst_cache_get_ip4(cache, &fl.saddr); in send4() 54 fl.saddr, RT_SCOPE_HOST))) { in send4() 57 fl.saddr = 0; in send4() 67 fl.saddr = 0; in send4() 85 udp_tunnel_xmit_skb(rt, sock, skb, fl.saddr, fl.daddr, ds, in send4() 87 fl.fl4_dport, false, false); in send4() 101 struct flowi6 fl = { in send6() local 152 udp_tunnel6_xmit_skb(dst, sock, skb, skb->dev, &fl.saddr, &fl.daddr, ds, in send6() [all …]
|
/linux-6.3-rc2/net/l3mdev/ |
A D | l3mdev.c | 254 if (!fl->flowi_l3mdev) in l3mdev_fib_rule_match() 259 dev = dev_get_by_index_rcu(net, fl->flowi_l3mdev); in l3mdev_fib_rule_match() 271 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow() argument 277 if (fl->flowi_oif) { in l3mdev_update_flow() 278 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_update_flow() 280 if (!fl->flowi_l3mdev) in l3mdev_update_flow() 281 fl->flowi_l3mdev = l3mdev_master_ifindex_rcu(dev); in l3mdev_update_flow() 287 fl->flowi_oif = 0; in l3mdev_update_flow() 292 if (fl->flowi_iif > LOOPBACK_IFINDEX && !fl->flowi_l3mdev) { in l3mdev_update_flow() 293 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_update_flow() [all …]
|
/linux-6.3-rc2/fs/nfs/ |
A D | file.c | 718 posix_test_lock(filp, fl); in do_getlk() 719 if (fl->fl_type != F_UNLCK) { in do_getlk() 723 fl->fl_type = saved_type; in do_getlk() 735 fl->fl_type = F_UNLCK; in do_getlk() 827 filp, fl->fl_type, fl->fl_flags, in nfs_lock() 828 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock() 832 if (fl->fl_flags & FL_RECLAIM) in nfs_lock() 846 else if (fl->fl_type == F_UNLCK) in nfs_lock() 864 filp, fl->fl_type, fl->fl_flags); in nfs_flock() 866 if (!(fl->fl_flags & FL_FLOCK)) in nfs_flock() [all …]
|