/kernel/linux/linux-6.6/mm/damon/ |
H A 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()
|
/kernel/linux/linux-5.10/mm/ |
H A D | page_idle.c | 102 bool need_lock; in page_idle_clear_pte_refs() local 108 need_lock = !PageAnon(page) || PageKsm(page); in page_idle_clear_pte_refs() 109 if (need_lock && !trylock_page(page)) in page_idle_clear_pte_refs() 114 if (need_lock) in page_idle_clear_pte_refs()
|
/kernel/linux/linux-6.6/mm/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/media/usb/gspca/ |
H A 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()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | data.c | 2683 fio->need_lock = LOCK_DONE; in f2fs_do_write_data_page() 2688 if (fio->need_lock == LOCK_REQ && !f2fs_trylock_op(fio->sbi)) in f2fs_do_write_data_page() 2724 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page() 2739 if (fio->need_lock == LOCK_RETRY) { in f2fs_do_write_data_page() 2744 fio->need_lock = LOCK_REQ; in f2fs_do_write_data_page() 2772 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page() 2805 .need_lock = LOCK_RETRY, in f2fs_write_single_data_page() 2863 fio.need_lock = LOCK_DONE; in f2fs_write_single_data_page() 2889 fio.need_lock = LOCK_REQ; in f2fs_write_single_data_page()
|
H A D | gc.c | 1370 .need_lock = LOCK_REQ, in move_data_page()
|
H A D | f2fs.h | 1140 int need_lock; /* indicate we need to lock cp_rwsem */ member
|
H A D | segment.c | 509 fio.need_lock = LOCK_DONE; in __f2fs_commit_inmem_pages()
|
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | data.c | 2714 fio->need_lock = LOCK_DONE; in f2fs_do_write_data_page() 2719 if (fio->need_lock == LOCK_REQ && !f2fs_trylock_op(fio->sbi)) in f2fs_do_write_data_page() 2760 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page() 2775 if (fio->need_lock == LOCK_RETRY) { in f2fs_do_write_data_page() 2780 fio->need_lock = LOCK_REQ; in f2fs_do_write_data_page() 2805 if (fio->need_lock == LOCK_REQ) in f2fs_do_write_data_page() 2839 .need_lock = compr_blocks ? LOCK_DONE : LOCK_RETRY, in f2fs_write_single_data_page() 2894 fio.need_lock = LOCK_DONE; in f2fs_write_single_data_page() 2921 fio.need_lock = LOCK_REQ; in f2fs_write_single_data_page()
|
H A D | gc.c | 1460 .need_lock = LOCK_REQ, in move_data_page()
|
H A D | f2fs.h | 1201 unsigned int need_lock:8; /* indicate we need to lock cp_rwsem */ member
|
/kernel/linux/linux-6.6/drivers/scsi/hisi_sas/ |
H A D | hisi_sas.h | 660 bool need_lock);
|
H A D | hisi_sas_main.c | 208 struct hisi_sas_slot *slot, bool need_lock) in hisi_sas_slot_task_free() 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() 1098 hisi_sas_slot_task_free(hisi_hba, task, slot, need_lock); in hisi_sas_do_release_task() 207 hisi_sas_slot_task_free(struct hisi_hba *hisi_hba, struct sas_task *task, struct hisi_sas_slot *slot, bool need_lock) hisi_sas_slot_task_free() argument 1080 hisi_sas_do_release_task(struct hisi_hba *hisi_hba, struct sas_task *task, struct hisi_sas_slot *slot, bool need_lock) hisi_sas_do_release_task() argument
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/omap2/omapfb/dss/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/s390/kvm/ |
H A D | kvm-s390.c | 2613 const bool need_lock = (cmd->cmd != KVM_PV_ASYNC_CLEANUP_PERFORM); in kvm_s390_handle_pv() local 2618 if (need_lock) in kvm_s390_handle_pv() 2841 if (need_lock) in kvm_s390_handle_pv()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | disk-io.c | 243 bool need_lock = (current->journal_info == BTRFS_SEND_TRANS_STUB); in verify_parent_transid() local 251 if (need_lock) { in verify_parent_transid() 282 if (need_lock) in verify_parent_transid()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 7413 static bool hclge_is_umv_space_full(struct hclge_vport *vport, bool need_lock) in hclge_is_umv_space_full() argument 7418 if (need_lock) in hclge_is_umv_space_full() 7424 if (need_lock) in hclge_is_umv_space_full()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 8359 static bool hclge_is_umv_space_full(struct hclge_vport *vport, bool need_lock) in hclge_is_umv_space_full() argument 8364 if (need_lock) in hclge_is_umv_space_full() 8370 if (need_lock) in hclge_is_umv_space_full()
|