Home
last modified time | relevance | path

Searched refs:old_flags (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c468 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
480 old_flags = read_mnt_flags("/mnt/A"); in TEST_F()
481 ASSERT_GT(old_flags, 0); in TEST_F()
514 expected_flags = old_flags; in TEST_F()
532 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
541 old_flags = read_mnt_flags("/mnt/A"); in TEST_F()
542 ASSERT_GT(old_flags, 0); in TEST_F()
546 expected_flags = old_flags; in TEST_F()
556 ASSERT_EQ(new_flags, old_flags); in TEST_F()
559 ASSERT_EQ(new_flags, old_flags); in TEST_F()
[all …]
/linux/mm/
H A Dmmzone.c102 unsigned long old_flags, flags; in folio_xchg_last_cpupid()
105 old_flags = READ_ONCE(folio->flags.f); in folio_xchg_last_cpupid()
107 flags = old_flags; in folio_xchg_last_cpupid()
112 } while (unlikely(!try_cmpxchg(&folio->flags.f, &old_flags, flags))); in folio_xchg_last_cpupid()
101 unsigned long old_flags, flags; folio_xchg_last_cpupid() local
H A Dfolio.c383 unsigned long new_flags, old_flags = READ_ONCE(*folio_flags(folio, 0)); in lru_gen_clear_refs()
396 new_flags = old_flags;
397 refs = lru_get_refs_flags(old_flags);
404 } while (!try_cmpxchg(folio_flags(folio, 0), &old_flags, new_flags)); in lru_gen_clear_refs()
357 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); lru_gen_inc_refs() local
H A Dvmscan.c3396 unsigned long new_flags, old_flags = READ_ONCE(*folio_flags(folio, 0)); in should_skip_vma()
3411 old_gen = lru_get_gen_flags(old_flags);
3412 new_flags = old_flags;
3421 } while (!try_cmpxchg(folio_flags(folio, 0), &old_flags, new_flags)); in get_next_vma()
3423 *type = folio_flags_is_file_lru(&old_flags); in get_next_vma()
3429 unsigned long new_flags, old_flags = READ_ONCE(*folio_flags(folio, 0)); in get_next_vma()
3433 new_gen = lru_get_gen_flags(old_flags); in get_next_vma()
3442 new_flags = old_flags; in get_pte_pfn()
3447 } while (!try_cmpxchg(folio_flags(folio, 0), &old_flags, new_flags)); in get_pte_pfn()
3271 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); folio_update_gen() local
3304 unsigned long new_flags, old_flags = READ_ONCE(folio->flags.f); folio_inc_gen() local
/linux/net/batman-adv/
H A Dmulticast.c810 struct batadv_mcast_mla_flags *old_flags = &bat_priv->mcast.mla_flags; in batadv_mcast_bridge_log() local
812 if (!old_flags->bridged && new_flags->bridged) in batadv_mcast_bridge_log()
815 else if (old_flags->bridged && !new_flags->bridged) in batadv_mcast_bridge_log()
821 &old_flags->querier_ipv4, in batadv_mcast_bridge_log()
824 &old_flags->querier_ipv6, in batadv_mcast_bridge_log()
840 u8 old_flags = bat_priv->mcast.mla_flags.tvlv_flags; in batadv_mcast_flags_log() local
844 (old_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) ? 'U' : '.', in batadv_mcast_flags_log()
845 (old_flags & BATADV_MCAST_WANT_ALL_IPV4) ? '4' : '.', in batadv_mcast_flags_log()
846 (old_flags & BATADV_MCAST_WANT_ALL_IPV6) ? '6' : '.', in batadv_mcast_flags_log()
847 !(old_flags in batadv_mcast_flags_log()
[all...]
/linux/tools/testing/selftests/net/af_unix/
H A Dmsg_oob.c299 int ret, old_flags, flags; in __setblockingpair() local
301 old_flags = fcntl(self->fd[i * 2 + 1], F_GETFL, 0); in __setblockingpair()
302 ASSERT_NE(-1, old_flags); in __setblockingpair()
304 ret = fcntl(self->fd[i * 2 + 1], F_SETFL, old_flags & ~O_NONBLOCK); in __setblockingpair()
308 ASSERT_EQ(old_flags & ~O_NONBLOCK, flags); in __setblockingpair()
/linux/tools/testing/selftests/bpf/
H A Dtest_maps.c337 int i, first, second, old_flags; in test_hashmap_zero_seed() local
340 old_flags = map_opts.map_flags; in test_hashmap_zero_seed()
363 map_opts.map_flags = old_flags; in test_hashmap_zero_seed()
1537 __u32 old_flags; in test_map_rdonly() local
1539 old_flags = map_opts.map_flags; in test_map_rdonly()
1543 map_opts.map_flags = old_flags; in test_map_rdonly()
1566 __u32 old_flags; in test_map_wronly_hash() local
1568 old_flags = map_opts.map_flags; in test_map_wronly_hash()
1572 map_opts.map_flags = old_flags; in test_map_wronly_hash()
1594 __u32 old_flags; in test_map_wronly_stack_or_queue() local
[all …]
/linux/kernel/trace/
H A Dtrace_nop.c64 static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in nop_set_flag() argument
H A Dtrace_events_filter.c1299 unsigned long old_flags = file->flags; filter_disable() local
2244 unsigned long old_flags = file->flags; event_set_filtered_flag() local
H A Dtrace_functions.c459 func_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in func_set_flag()
456 func_set_flag(struct trace_array * tr,u32 old_flags,u32 bit,int set) func_set_flag() argument
/linux/arch/x86/mm/pat/
H A Dmemtype.c146 unsigned long old_flags; in set_page_memtype() local
165 old_flags = READ_ONCE(pg->flags.f); in set_page_memtype()
167 new_flags = (old_flags & _PGMT_CLEAR_MASK) | memtype_flags; in set_page_memtype()
168 } while (!try_cmpxchg(&pg->flags.f, &old_flags, new_flags)); in set_page_memtype()
/linux/arch/x86/include/asm/
H A Dkprobes.h103 unsigned long old_flags; member
/linux/arch/loongarch/kvm/
H A Dmmu.c458 u32 old_flags = old ? old->flags : 0; in kvm_arch_commit_memory_region() local
467 if ((old_flags & new_flags) & KVM_MEM_READONLY) in kvm_arch_commit_memory_region()
479 if (!(old_flags & KVM_MEM_LOG_DIRTY_PAGES) && log_dirty_pages) { in kvm_arch_commit_memory_region()
/linux/fs/nfs/
H A Dlocalio.c995 unsigned long old_flags = current->flags; in nfs_local_doio()
1039 current->flags = old_flags; in nfs_local_run_commit()
1215 unsigned long old_flags = current->flags;
1228 current->flags = old_flags;
884 unsigned long old_flags = current->flags; nfs_local_call_write() local
1091 unsigned long old_flags = current->flags; nfs_local_fsync_work() local
/linux/net/8021q/
H A Dvlan_dev.c263 u32 old_flags = vlan->flags; in vlan_dev_inherit_address()
271 new_flags = (old_flags & ~mask) | (flags & mask); in vlan_dev_open()
274 if (netif_running(dev) && (new_flags ^ old_flags) & VLAN_FLAG_GVRP) { in vlan_dev_open()
281 if (netif_running(dev) && (new_flags ^ old_flags) & VLAN_FLAG_MVRP) { in vlan_dev_open()
227 u32 old_flags = vlan->flags; vlan_dev_change_flags() local
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_crypto_tkip.c65 unsigned long old_flags = _priv->flags; in libipw_tkip_set_flags() local
67 return old_flags; in libipw_tkip_set_flags()
/linux/kernel/
H A Dsoftirq.c628 unsigned long old_flags = current->flags; in handle_softirqs()
698 current_restore_flags(old_flags, PF_MEMALLOC); in irq_enter_rcu()
605 unsigned long old_flags = current->flags; handle_softirqs() local
/linux/net/sched/
H A Dsch_hfsc.c961 int old_flags; in hfsc_change_class() local
984 old_flags = cl->cl_flags; in hfsc_change_class()
1001 if (old_flags & HFSC_RSC) in hfsc_change_class()
1008 if (old_flags & HFSC_FSC) in hfsc_change_class()
/linux/kernel/bpf/
H A Dtrampoline.c1687 tr->multi_attach.old_flags = tr->flags; in bpf_trampoline_multi_attach_free()
1706 tr->multi_attach.old_flags = 0; in bpf_trampoline_multi_attach_rollback()
1714 tr->flags = tr->multi_attach.old_flags;
1717 tr->multi_attach.old_flags = 0;
H A Dcgroup.c1019 u32 old_flags, old_pl_flags; in replace_effective_prog()
1098 old_flags = cgrp->bpf.flags[atype]; in cgroup_bpf_replace()
1138 cgrp->bpf.flags[atype] = old_flags; in find_detach_entry()
819 u32 old_flags, old_pl_flags; __cgroup_bpf_attach() local
/linux/net/core/
H A Ddev.c9864 unsigned int old_flags = dev->flags; in __dev_change_flags()
9881 flags = old_flags & ~IFF_PROMISC; in __dev_change_flags()
9883 flags = old_flags | IFF_PROMISC; in __dev_notify_flags() argument
9886 if (flags != old_flags) { in __dev_notify_flags()
9896 (old_flags & IFF_PROMISC), in __dev_notify_flags()
9906 __dev_notify_flags(dev, old_flags, IFF_PROMISC, 0, NULL); in __dev_notify_flags()
9912 unsigned int old_flags = dev->flags; in __dev_notify_flags()
9918 if (dev->flags != old_flags) in netif_change_flags() local
9925 unsigned int old_flags = dev->flags, old_gflags = dev->gflags; in netif_change_flags()
9940 flags = old_flags in __netif_set_mtu()
9691 unsigned int old_flags = dev->flags; __dev_set_promiscuity() local
9739 unsigned int old_flags = dev->flags; netif_set_promiscuity() local
9752 unsigned int old_flags = dev->flags, old_gflags = dev->gflags; netif_set_allmulti() local
9820 unsigned int old_flags = dev->flags; __dev_change_flags() local
[all...]
H A Ddev.h193 void __dev_notify_flags(struct net_device *dev, unsigned int old_flags, in netif_set_up()
/linux/arch/x86/kernel/kprobes/
H A Dcore.c817 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe()
826 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
/linux/drivers/tty/serial/
H A Dserial_core.c901 upf_t old_flags, new_flags; in uart_set_info()
938 old_flags = uport->flags; in uart_set_info()
955 (((new_flags ^ old_flags) & ~UPF_USR_MASK) != 0)) in uart_set_info()
1015 if (((old_flags ^ uport->flags) & UPF_SPD_MASK) || in uart_set_info()
896 upf_t old_flags, new_flags; uart_set_info() local
/linux/tools/perf/util/
H A Dsymbol.c394 uint16_t old_flags = atomic_load_explicit(&sym->flags, memory_order_relaxed); in symbol__set_idle()
399 new_flags = old_flags & ~SYMBOL_FLAG_IDLE_MASK; in symbols__delete()
401 } while (!atomic_compare_exchange_weak(&sym->flags, &old_flags, new_flags)); in symbols__delete()
388 uint16_t old_flags = atomic_load_explicit(&sym->flags, memory_order_relaxed); symbol__set_idle() local

12