Searched refs:need_lock (Results 1 – 11 of 11) sorted by relevance
| /Linux-v6.6/mm/damon/ |
| D | paddr.c | 41 bool need_lock; in damon_pa_mkold() local 51 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in damon_pa_mkold() 52 if (need_lock && !folio_trylock(folio)) in damon_pa_mkold() 57 if (need_lock) in damon_pa_mkold() 123 bool need_lock; in damon_pa_young() local 136 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in damon_pa_young() 137 if (need_lock && !folio_trylock(folio)) in damon_pa_young() 142 if (need_lock) in damon_pa_young()
|
| /Linux-v6.6/mm/ |
| D | page_idle.c | 99 bool need_lock; in page_idle_clear_pte_refs() local 104 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); in page_idle_clear_pte_refs() 105 if (need_lock && !folio_trylock(folio)) in page_idle_clear_pte_refs() 110 if (need_lock) in page_idle_clear_pte_refs()
|
| /Linux-v6.6/drivers/media/usb/gspca/ |
| D | sq905.c | 158 sq905_read_data(struct gspca_dev *gspca_dev, u8 *data, int size, int need_lock) in sq905_read_data() argument 164 if (need_lock) in sq905_read_data() 172 if (need_lock) in sq905_read_data()
|
| /Linux-v6.6/fs/f2fs/ |
| D | data.c | 2724 fio->need_lock = LOCK_DONE; in f2fs_do_write_data_page() 2729 if (fio->need_lock == LOCK_REQ && !f2fs_trylock_op(fio->sbi)) in f2fs_do_write_data_page() 2766 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page() 2781 if (fio->need_lock == LOCK_RETRY) { in f2fs_do_write_data_page() 2786 fio->need_lock = LOCK_REQ; in f2fs_do_write_data_page() 2813 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page() 2847 .need_lock = LOCK_RETRY, in f2fs_write_single_data_page() 2905 fio.need_lock = LOCK_DONE; in f2fs_write_single_data_page() 2931 fio.need_lock = LOCK_REQ; in f2fs_write_single_data_page()
|
| D | gc.c | 1463 .need_lock = LOCK_REQ, in move_data_page()
|
| D | f2fs.h | 1197 unsigned int need_lock:8; /* indicate we need to lock cp_rwsem */ member
|
| /Linux-v6.6/drivers/scsi/hisi_sas/ |
| D | hisi_sas_main.c | 208 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_slot_task_free() argument 242 if (need_lock) { in hisi_sas_slot_task_free() 1081 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_do_release_task() argument 1098 hisi_sas_slot_task_free(hisi_hba, task, slot, need_lock); in hisi_sas_do_release_task()
|
| D | hisi_sas.h | 660 bool need_lock);
|
| /Linux-v6.6/drivers/video/fbdev/omap2/omapfb/dss/ |
| D | dispc.c | 270 const bool need_lock = rfld.reg == DISPC_CONTROL || rfld.reg == DISPC_CONFIG; in mgr_fld_write() local 273 if (need_lock) in mgr_fld_write() 278 if (need_lock) in mgr_fld_write()
|
| /Linux-v6.6/arch/s390/kvm/ |
| D | kvm-s390.c | 2606 const bool need_lock = (cmd->cmd != KVM_PV_ASYNC_CLEANUP_PERFORM); in kvm_s390_handle_pv() local 2611 if (need_lock) in kvm_s390_handle_pv() 2834 if (need_lock) in kvm_s390_handle_pv()
|
| /Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| D | hclge_main.c | 8352 static bool hclge_is_umv_space_full(struct hclge_vport *vport, bool need_lock) in hclge_is_umv_space_full() argument 8357 if (need_lock) in hclge_is_umv_space_full() 8363 if (need_lock) in hclge_is_umv_space_full()
|