Home
last modified time | relevance | path

Searched refs:fl (Results 1 – 25 of 220) sorted by relevance

123456789

/linux/net/ipv6/
A Dip6_flowlabel.c63 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/fs/
A Dlocks.c75 #define IS_REMOTELCK(fl) (fl->fl_pid <= 0) argument
214 fl->fl_owner, fl->fl_flags, fl->fl_type, fl->fl_pid); in locks_check_ctx_file_list()
259 fl->fl_ops->fl_release_private(fl); in locks_release_private()
334 fl->fl_ops->fl_copy_lock(new, fl); in locks_copy_lock()
442 fl->fl_end = fl->fl_start - 1; in flock64_to_posix_lock()
911 fl = fl->fl_blocker; in what_owner_is_waiting_for()
1450 if (fl->fl_lmops->lm_break(fl)) in __break_lease()
1525 if (fl && (fl->fl_type == F_WRLCK)) in lease_get_mtime()
2137 fl->fl_end - fl->fl_start + 1; in posix_lock_to_flock()
2149 fl->fl_end - fl->fl_start + 1; in posix_lock_to_flock64()
[all …]
/linux/include/trace/events/
A Dfilelock.h82 __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/fs/lockd/
A Dclntproc.c140 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs()
141 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs()
142 lock->fl.fl_type = fl->fl_type; in nlmclnt_setlockargs()
191 fl->fl_ops->fl_release_private(fl); in nlmclnt_proc()
192 fl->fl_ops = NULL; in nlmclnt_proc()
444 fl->fl_start = req->a_res.lock.fl.fl_start; in nlmclnt_test()
445 fl->fl_end = req->a_res.lock.fl.fl_end; in nlmclnt_test()
446 fl->fl_type = req->a_res.lock.fl.fl_type; in nlmclnt_test()
447 fl->fl_pid = -req->a_res.lock.fl.fl_pid; in nlmclnt_test()
489 return locks_lock_file_wait(fl->fl_file, fl); in do_vfs_lock()
[all …]
A Dsvclock.c154 (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()
482 lock->fl.fl_type, lock->fl.fl_pid, in nlmsvc_lock()
625 lock->fl.fl_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
631 conflock->fl.fl_type = lock->fl.fl_type; in nlmsvc_testlock()
632 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock()
633 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock()
[all …]
A Dxdr.c74 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 Dxdr4.c72 struct file_lock *fl = &lock->fl; in svcxdr_decode_lock() local
89 locks_init_lock(fl); in svcxdr_decode_lock()
90 fl->fl_flags = FL_POSIX; in svcxdr_decode_lock()
91 fl->fl_type = F_RDLCK; in svcxdr_decode_lock()
95 fl->fl_end = OFFSET_MAX; in svcxdr_decode_lock()
97 fl->fl_end = s64_to_loff_t(end); in svcxdr_decode_lock()
105 const struct file_lock *fl = &lock->fl; in svcxdr_encode_holder() local
116 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder()
119 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder()
225 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
[all …]
A Dclnt4xdr.c68 const struct file_lock *fl = &lock->fl; in nlm4_compute_offsets() local
70 *l_offset = loff_t_to_s64(fl->fl_start); in nlm4_compute_offsets()
71 if (fl->fl_end == OFFSET_MAX) in nlm4_compute_offsets()
74 *l_len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_compute_offsets()
259 struct file_lock *fl = &lock->fl; in decode_nlm4_holder() local
267 locks_init_lock(fl); in decode_nlm4_holder()
274 fl->fl_pid = (pid_t)lock->svid; in decode_nlm4_holder()
284 fl->fl_flags = FL_POSIX; in decode_nlm4_holder()
290 fl->fl_start = (loff_t)l_offset; in decode_nlm4_holder()
292 fl->fl_end = OFFSET_MAX; in decode_nlm4_holder()
[all …]
/linux/fs/afs/
A Dflock.c467 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/fs/ceph/
A Dlocks.c80 fl->fl_ops->fl_copy_lock(fl, NULL); in ceph_lock_message()
97 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message()
103 (int)operation, owner, (u64)fl->fl_pid, fl->fl_start, length, in ceph_lock_message()
104 wait, fl->fl_type); in ceph_lock_message()
121 fl->fl_type = F_RDLCK; in ceph_lock_message()
123 fl->fl_type = F_WRLCK; in ceph_lock_message()
125 fl->fl_type = F_UNLCK; in ceph_lock_message()
131 fl->fl_end = length -1; in ceph_lock_message()
133 fl->fl_end = 0; in ceph_lock_message()
139 (int)operation, (u64)fl->fl_pid, fl->fl_start, in ceph_lock_message()
[all …]
A Dutil.c34 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/fs/dlm/
A Dplock.c31 void *fl; member
92 if (fl->fl_lmops && fl->fl_lmops->lm_grant) in do_unlock_close()
128 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in dlm_posix_lock()
135 xop->fl = fl; in dlm_posix_lock()
188 struct file_lock *fl; in dlm_plock_callback() local
205 fl = xop->fl; in dlm_plock_callback()
228 rv = notify(fl, 0); in dlm_plock_callback()
278 if (fl->fl_lmops && fl->fl_lmops->lm_grant) in dlm_posix_unlock()
339 if (fl->fl_lmops && fl->fl_lmops->lm_grant) in dlm_posix_get()
360 fl->fl_type = F_UNLCK; in dlm_posix_get()
[all …]
/linux/include/linux/
A Dthread_info.h135 #define set_syscall_work(fl) \ argument
137 #define test_syscall_work(fl) \ argument
139 #define clear_syscall_work(fl) \ argument
142 #define set_task_syscall_work(t, fl) \ argument
144 #define test_task_syscall_work(t, fl) \ argument
146 #define clear_task_syscall_work(t, fl) \ argument
151 #define set_syscall_work(fl) \ argument
153 #define test_syscall_work(fl) \ argument
155 #define clear_syscall_work(fl) \ argument
158 #define set_task_syscall_work(t, fl) \ argument
[all …]
/linux/fs/nfs/filelayout/
A Dfilelayout.c566 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_deviceid()
636 if (fl->fh_array) { in _filelayout_free_lseg()
644 kfree(fl); in _filelayout_free_lseg()
675 memcpy(&fl->deviceid, p, sizeof(fl->deviceid)); in filelayout_decode_layout()
693 __func__, nfl_util, fl->num_fh, fl->first_stripe_index, in filelayout_decode_layout()
698 if (fl->num_fh > in filelayout_decode_layout()
703 fl->fh_array = kcalloc(fl->num_fh, sizeof(fl->fh_array[0]), in filelayout_decode_layout()
728 memcpy(fl->fh_array[i]->data, p, fl->fh_array[i]->size); in filelayout_decode_layout()
772 fl = kzalloc(sizeof(*fl), gfp_flags); in filelayout_alloc_lseg()
773 if (!fl) in filelayout_alloc_lseg()
[all …]
/linux/drivers/misc/
A Dfastrpc.c304 buf->fl = fl; in fastrpc_buf_alloc()
319 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc()
634 map->fl = fl; in fastrpc_map_create()
919 struct fastrpc_user *fl = ctx->fl; in fastrpc_invoke_send() local
1069 err = fastrpc_buf_alloc(fl, fl->sctx->dev, memlen, in fastrpc_init_create_process()
1215 kfree(fl); in fastrpc_device_release()
1227 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in fastrpc_device_open()
1228 if (!fl) in fastrpc_device_open()
1248 kfree(fl); in fastrpc_device_open()
1270 err = fastrpc_buf_alloc(fl, fl->sctx->dev, bp.size, &buf); in fastrpc_dmabuf_alloc()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
A Dsge.c484 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()
1718 fl->cidx = fl->size - 1; in restore_rx_bufs()
1721 sdesc = &fl->sdesc[fl->cidx]; in restore_rx_bufs()
2394 if (fl && fl->desc) { in t4vf_sge_alloc_rxq()
2398 fl->desc, fl->addr); in t4vf_sge_alloc_rxq()
2547 free_rx_bufs(adapter, fl, fl->avail); in free_rspq_fl()
[all …]
/linux/fs/9p/
A Dvfs_file.c152 switch (fl->fl_type) { in v9fs_file_do_lock()
167 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock()
224 fl_type = fl->fl_type; in v9fs_file_do_lock()
225 fl->fl_type = F_UNLCK; in v9fs_file_do_lock()
228 fl->fl_type = fl_type; in v9fs_file_do_lock()
260 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock()
270 fl->fl_type = F_RDLCK; in v9fs_file_getlock()
273 fl->fl_type = F_WRLCK; in v9fs_file_getlock()
276 fl->fl_type = F_UNLCK; in v9fs_file_getlock()
307 filp, cmd, fl, filp); in v9fs_file_lock_dotl()
[all …]
/linux/fs/ocfs2/
A Dlocks.c23 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
29 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
71 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
88 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock()
102 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock()
107 return locks_lock_file_wait(file, fl); in ocfs2_flock()
109 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
110 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
112 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
115 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
[all …]
/linux/drivers/mtd/parsers/
A Dredboot.c220 prev = &fl; in parse_redboot_partitions()
229 if (fl->img->flash_base) { in parse_redboot_partitions()
258 if (fl->img->flash_base) { in parse_redboot_partitions()
266 parts[i].size = fl->img->size; in parse_redboot_partitions()
270 strcpy(names, fl->img->name); in parse_redboot_partitions()
281 …if (fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_ba… in parse_redboot_partitions()
288 tmp_fl = fl; in parse_redboot_partitions()
289 fl = fl->next; in parse_redboot_partitions()
295 while (fl) { in parse_redboot_partitions()
296 struct fis_list *old = fl; in parse_redboot_partitions()
[all …]
/linux/fs/nfsd/
A Dflexfilelayout.c30 struct pnfs_ff_layout *fl; in nfsd4_ff_proc_layoutget() local
38 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in nfsd4_ff_proc_layoutget()
39 if (!fl) in nfsd4_ff_proc_layoutget()
41 args->lg_content = fl; in nfsd4_ff_proc_layoutget()
48 fl->flags = FF_FLAGS_NO_LAYOUTCOMMIT | FF_FLAGS_NO_IO_THRU_MDS | in nfsd4_ff_proc_layoutget()
54 fl->uid = make_kuid(&init_user_ns, u); in nfsd4_ff_proc_layoutget()
56 fl->uid = inode->i_uid; in nfsd4_ff_proc_layoutget()
57 fl->gid = inode->i_gid; in nfsd4_ff_proc_layoutget()
59 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget()
63 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget()
[all …]
A Dflexfilelayoutxdr.c22 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/drivers/net/wireguard/
A Dsocket.c23 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/fs/nfs/
A Dfile.c695 posix_test_lock(filp, fl); in do_getlk()
696 if (fl->fl_type != F_UNLCK) { in do_getlk()
700 fl->fl_type = saved_type; in do_getlk()
712 fl->fl_type = F_UNLCK; in do_getlk()
804 filp, fl->fl_type, fl->fl_flags, in nfs_lock()
805 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
809 if (fl->fl_flags & FL_RECLAIM) in nfs_lock()
823 else if (fl->fl_type == F_UNLCK) in nfs_lock()
841 filp, fl->fl_type, fl->fl_flags); in nfs_flock()
843 if (!(fl->fl_flags & FL_FLOCK)) in nfs_flock()
[all …]
/linux/net/l3mdev/
A Dl3mdev.c255 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_fib_rule_match()
263 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_fib_rule_match()
277 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow() argument
284 if (fl->flowi_oif) { in l3mdev_update_flow()
285 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_update_flow()
289 fl->flowi_oif = ifindex; in l3mdev_update_flow()
290 fl->flowi_flags |= FLOWI_FLAG_SKIP_NH_OIF; in l3mdev_update_flow()
296 if (fl->flowi_iif) { in l3mdev_update_flow()
297 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_update_flow()
301 fl->flowi_iif = ifindex; in l3mdev_update_flow()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
A Dsge.c564 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl()
786 struct rx_sw_desc *sd = &fl->sdesc[fl->cidx]; in get_packet()
805 recycle_rx_buf(adap, fl, fl->cidx); in get_packet()
810 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits - 1), in get_packet()
865 recycle_rx_buf(adap, fl, fl->cidx); in get_packet_pg()
2376 fl = (len & F_RSPD_FLQ) ? &qs->fl[1] : &qs->fl[0]; in process_responses()
2404 if (++fl->cidx == fl->size) in process_responses()
2995 if (qs->fl[0].credits < qs->fl[0].size) in sge_timer_rx()
2997 if (qs->fl[1].credits < qs->fl[1].size) in sge_timer_rx()
3092 q->fl[0].gen = q->fl[1].gen = 1; in t3_sge_alloc_qset()
[all …]

Completed in 63 milliseconds

123456789