/Linux-v4.19/net/ipv6/ |
D | ip6_flowlabel.c | 60 #define for_each_fl_rcu(hash, fl) \ argument 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) \ argument 65 for (fl = rcu_dereference_bh(fl->next); \ 66 fl != NULL; \ 67 fl = rcu_dereference_bh(fl->next)) 76 struct ip6_flowlabel *fl; in __fl_lookup() local 78 for_each_fl_rcu(FL_HASH(label), fl) { in __fl_lookup() [all …]
|
/Linux-v4.19/fs/ |
D | locks.c | 136 #define IS_POSIX(fl) (fl->fl_flags & FL_POSIX) argument 137 #define IS_FLOCK(fl) (fl->fl_flags & FL_FLOCK) argument 138 #define IS_LEASE(fl) (fl->fl_flags & (FL_LEASE|FL_DELEG|FL_LAYOUT)) argument 139 #define IS_OFDLCK(fl) (fl->fl_flags & FL_OFDLCK) argument 140 #define IS_REMOTELCK(fl) (fl->fl_pid <= 0) argument 142 static bool lease_breaking(struct file_lock *fl) in lease_breaking() argument 144 return fl->fl_flags & (FL_UNLOCK_PENDING | FL_DOWNGRADE_PENDING); in lease_breaking() 147 static int target_leasetype(struct file_lock *fl) in target_leasetype() argument 149 if (fl->fl_flags & FL_UNLOCK_PENDING) in target_leasetype() 151 if (fl->fl_flags & FL_DOWNGRADE_PENDING) in target_leasetype() [all …]
|
/Linux-v4.19/include/trace/events/ |
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_next = fl ? fl->fl_next : 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; [all …]
|
/Linux-v4.19/fs/afs/ |
D | flock.c | 19 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl); 20 static void afs_fl_release_private(struct file_lock *fl); 52 static void afs_grant_locks(struct afs_vnode *vnode, struct file_lock *fl) in afs_grant_locks() argument 56 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_grant_locks() 57 if (fl->fl_type == F_RDLCK) { in afs_grant_locks() 173 struct file_lock *fl, *next; in afs_lock_work() local 286 fl = list_entry(vnode->pending_locks.next, in afs_lock_work() 288 type = (fl->fl_type == F_RDLCK) ? AFS_LOCK_READ : AFS_LOCK_WRITE; in afs_lock_work() 295 fl->fl_u.afs.state = ret; in afs_lock_work() 297 afs_grant_locks(vnode, fl); in afs_lock_work() [all …]
|
/Linux-v4.19/fs/lockd/ |
D | clntproc.c | 30 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host); 124 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs() argument 131 memcpy(&lock->fh, NFS_FH(locks_inode(fl->fl_file)), sizeof(struct nfs_fh)); in nlmclnt_setlockargs() 135 (unsigned int)fl->fl_u.nfs_fl.owner->pid, in nlmclnt_setlockargs() 137 lock->svid = fl->fl_u.nfs_fl.owner->pid; in nlmclnt_setlockargs() 138 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs() 139 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs() 140 lock->fl.fl_type = fl->fl_type; in nlmclnt_setlockargs() 145 WARN_ON_ONCE(req->a_args.lock.fl.fl_ops != NULL); in nlmclnt_release_lockargs() 156 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data) in nlmclnt_proc() argument [all …]
|
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->fl_end, fl->fl_type, in nlmsvc_lookup_block() 161 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) { in nlmsvc_lookup_block() 239 call->a_args.lock.fl.fl_flags |= FL_SLEEP; in nlmsvc_create_block() [all …]
|
D | xdr4.c | 109 struct file_lock *fl = &lock->fl; in nlm4_decode_lock() local 120 locks_init_lock(fl); in nlm4_decode_lock() 121 fl->fl_owner = current->files; in nlm4_decode_lock() 122 fl->fl_pid = (pid_t)lock->svid; in nlm4_decode_lock() 123 fl->fl_flags = FL_POSIX; in nlm4_decode_lock() 124 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock() 129 fl->fl_start = s64_to_loff_t(start); in nlm4_decode_lock() 132 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock() 134 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock() 152 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres() local [all …]
|
D | xdr.c | 117 struct file_lock *fl = &lock->fl; in nlm_decode_lock() local 128 locks_init_lock(fl); in nlm_decode_lock() 129 fl->fl_owner = current->files; in nlm_decode_lock() 130 fl->fl_pid = (pid_t)lock->svid; in nlm_decode_lock() 131 fl->fl_flags = FL_POSIX; in nlm_decode_lock() 132 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm_decode_lock() 137 fl->fl_start = s32_to_loff_t(start); in nlm_decode_lock() 140 fl->fl_end = OFFSET_MAX; in nlm_decode_lock() 142 fl->fl_end = s32_to_loff_t(end); in nlm_decode_lock() 159 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres() local [all …]
|
D | clntlock.c | 99 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() argument 106 block->b_lock = fl; in nlmclnt_prepare_block() 165 const struct file_lock *fl = &lock->fl; in nlmclnt_grant() local 178 if (fl_blocked->fl_start != fl->fl_start) in nlmclnt_grant() 180 if (fl_blocked->fl_end != fl->fl_end) in nlmclnt_grant() 233 struct file_lock *fl, *next; in reclaimer() local 259 list_for_each_entry_safe(fl, next, &host->h_reclaim, fl_u.nfs_fl.list) { in reclaimer() 260 list_del_init(&fl->fl_u.nfs_fl.list); in reclaimer() 270 if (nlmclnt_reclaim(host, fl, req) != 0) in reclaimer() 272 list_add_tail(&fl->fl_u.nfs_fl.list, &host->h_granted); in reclaimer()
|
D | clnt4xdr.c | 68 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() 269 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm4_holder() 282 struct file_lock *fl = &lock->fl; in decode_nlm4_holder() local 290 locks_init_lock(fl); in decode_nlm4_holder() 297 fl->fl_pid = (pid_t)lock->svid; in decode_nlm4_holder() 307 fl->fl_flags = FL_POSIX; in decode_nlm4_holder() 308 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder() [all …]
|
D | clntxdr.c | 64 const struct file_lock *fl = &lock->fl; in nlm_compute_offsets() local 66 *l_offset = loff_t_to_s32(fl->fl_start); in nlm_compute_offsets() 67 if (fl->fl_end == OFFSET_MAX) in nlm_compute_offsets() 70 *l_len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_compute_offsets() 264 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm_holder() 277 struct file_lock *fl = &lock->fl; in decode_nlm_holder() local 284 locks_init_lock(fl); in decode_nlm_holder() 291 fl->fl_pid = (pid_t)lock->svid; in decode_nlm_holder() 301 fl->fl_flags = FL_POSIX; in decode_nlm_holder() 302 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder() [all …]
|
/Linux-v4.19/fs/dlm/ |
D | plock.c | 33 int (*callback)(struct file_lock *fl, int result); 34 void *fl; member 81 struct file *file, struct file_lock *fl) in do_unlock_close() argument 90 op->info.pid = fl->fl_pid; in do_unlock_close() 95 if (fl->fl_lmops && fl->fl_lmops->lm_grant) in do_unlock_close() 96 op->info.owner = (__u64) fl->fl_pid; in do_unlock_close() 98 op->info.owner = (__u64)(long) fl->fl_owner; in do_unlock_close() 105 int cmd, struct file_lock *fl) in dlm_posix_lock() argument 124 op->info.pid = fl->fl_pid; in dlm_posix_lock() 125 op->info.ex = (fl->fl_type == F_WRLCK); in dlm_posix_lock() [all …]
|
/Linux-v4.19/fs/ceph/ |
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() argument 75 fl->fl_ops = &ceph_fl_lock_ops; 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->fl_owner); in ceph_lock_message() 99 (int)operation, owner, (u64)fl->fl_pid, fl->fl_start, length, in ceph_lock_message() 100 wait, fl->fl_type); in ceph_lock_message() 105 req->r_args.filelock_change.pid = cpu_to_le64((u64)fl->fl_pid); in ceph_lock_message() [all …]
|
/Linux-v4.19/net/ceph/ |
D | ceph_fs.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->pool_id = -1; in ceph_file_layout_from_legacy() 44 void ceph_file_layout_to_legacy(struct ceph_file_layout *fl, in ceph_file_layout_to_legacy() argument 47 legacy->fl_stripe_unit = cpu_to_le32(fl->stripe_unit); in ceph_file_layout_to_legacy() [all …]
|
/Linux-v4.19/fs/ocfs2/ |
D | locks.c | 39 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument 45 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock() 87 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock() 97 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 104 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock() 113 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument 118 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock() 125 return locks_lock_file_wait(file, fl); in ocfs2_flock() 127 if (fl->fl_type == F_UNLCK) in ocfs2_flock() 128 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock() [all …]
|
/Linux-v4.19/fs/9p/ |
D | vfs_file.c | 131 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument 136 p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl); in v9fs_file_lock() 139 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in v9fs_file_lock() 142 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock() 150 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument 161 if ((fl->fl_flags & FL_POSIX) != FL_POSIX) in v9fs_file_do_lock() 164 res = locks_lock_file_wait(filp, fl); in v9fs_file_do_lock() 171 switch (fl->fl_type) { in v9fs_file_do_lock() 182 flock.start = fl->fl_start; in v9fs_file_do_lock() 183 if (fl->fl_end == OFFSET_MAX) in v9fs_file_do_lock() [all …]
|
/Linux-v4.19/fs/nfs/filelayout/ |
D | filelayout.c | 538 struct nfs4_filelayout_segment *fl, in filelayout_check_deviceid() argument 546 if (fl->dsaddr != NULL) in filelayout_check_deviceid() 550 d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode), &fl->deviceid, in filelayout_check_deviceid() 560 if (fl->first_stripe_index >= dsaddr->stripe_count) { in filelayout_check_deviceid() 562 __func__, fl->first_stripe_index); in filelayout_check_deviceid() 566 if ((fl->stripe_type == STRIPE_SPARSE && in filelayout_check_deviceid() 567 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_deviceid() 568 (fl->stripe_type == STRIPE_DENSE && in filelayout_check_deviceid() 569 fl->num_fh != dsaddr->stripe_count)) { in filelayout_check_deviceid() 571 __func__, fl->num_fh); in filelayout_check_deviceid() [all …]
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 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() 262 const struct sge_fl *fl) in fl_starving() argument 266 return fl->avail - fl->pend_cred <= s->fl_starve_thres; in fl_starving() 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->sdesc[fl->cidx]; in free_rx_bufs() 484 if (++fl->cidx == fl->size) in free_rx_bufs() 485 fl->cidx = 0; in free_rx_bufs() 486 fl->avail--; in free_rx_bufs() 503 static void unmap_rx_buf(struct adapter *adapter, struct sge_fl *fl) in unmap_rx_buf() argument [all …]
|
/Linux-v4.19/drivers/mtd/ |
D | redboot.c | 66 struct fis_list *fl = NULL, *tmp_fl; in parse_redboot_partitions() local 207 prev = &fl; in parse_redboot_partitions() 216 if (fl->img->flash_base) { in parse_redboot_partitions() 221 for (tmp_fl = fl; tmp_fl->next; tmp_fl = tmp_fl->next) { in parse_redboot_partitions() 246 if (fl->img->flash_base) { in parse_redboot_partitions() 248 parts[0].size = fl->img->flash_base; in parse_redboot_partitions() 254 parts[i].size = fl->img->size; in parse_redboot_partitions() 255 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions() 258 strcpy(names, fl->img->name); in parse_redboot_partitions() 269 …if(fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_bas… in parse_redboot_partitions() [all …]
|
/Linux-v4.19/fs/nfsd/ |
D | flexfilelayout.c | 30 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 …]
|
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-v4.19/net/l3mdev/ |
D | l3mdev.c | 140 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() argument 148 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_fib_rule_match() 156 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_fib_rule_match() 170 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow() argument 177 if (fl->flowi_oif) { in l3mdev_update_flow() 178 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_update_flow() 182 fl->flowi_oif = ifindex; in l3mdev_update_flow() 183 fl->flowi_flags |= FLOWI_FLAG_SKIP_NH_OIF; in l3mdev_update_flow() 189 if (fl->flowi_iif) { in l3mdev_update_flow() 190 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_update_flow() [all …]
|
/Linux-v4.19/fs/nfs/ |
D | file.c | 661 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk() argument 665 unsigned int saved_type = fl->fl_type; in do_getlk() 668 posix_test_lock(filp, fl); in do_getlk() 669 if (fl->fl_type != F_UNLCK) { in do_getlk() 673 fl->fl_type = saved_type; in do_getlk() 681 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk() 685 fl->fl_type = F_UNLCK; in do_getlk() 690 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument 710 if (status < 0 && !(fl->fl_flags & FL_CLOSE)) in do_unlk() 719 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_catalog.c | 378 {.fl = 4, .lut = 0x357}, 379 {.fl = 5, .lut = 0x3357}, 380 {.fl = 6, .lut = 0x23357}, 381 {.fl = 7, .lut = 0x223357}, 382 {.fl = 8, .lut = 0x2223357}, 383 {.fl = 9, .lut = 0x22223357}, 384 {.fl = 10, .lut = 0x222223357}, 385 {.fl = 11, .lut = 0x2222223357}, 386 {.fl = 12, .lut = 0x22222223357}, 387 {.fl = 13, .lut = 0x222222223357}, [all …]
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 169 return container_of(q, struct sge_qset, fl[qidx]); in fl_to_qset() 563 static inline void __refill_fl(struct adapter *adap, struct sge_fl *fl) in __refill_fl() argument 565 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl() 657 memset(q->fl, 0, sizeof(struct sge_fl) * SGE_RXQ_PER_SET); in t3_reset_qset() 682 if (q->fl[i].desc) { in t3_free_qset() 684 t3_sge_disable_fl(adapter, q->fl[i].cntxt_id); in t3_free_qset() 686 free_rx_bufs(pdev, &q->fl[i]); in t3_free_qset() 687 kfree(q->fl[i].sdesc); in t3_free_qset() 689 q->fl[i].size * in t3_free_qset() 690 sizeof(struct rx_desc), q->fl[i].desc, in t3_free_qset() [all …]
|