Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 197) sorted by relevance

12345678

/linux-6.12.1/drivers/md/persistent-data/
Ddm-space-map.h20 void (*destroy)(struct dm_space_map *sm);
25 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks);
31 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count);
41 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count);
43 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result);
44 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b,
46 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count);
48 int (*commit)(struct dm_space_map *sm);
50 int (*inc_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e);
51 int (*dec_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e);
[all …]
Ddm-space-map-disk.c26 struct dm_space_map sm; member
35 static void sm_disk_destroy(struct dm_space_map *sm) in sm_disk_destroy() argument
37 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_destroy()
42 static int sm_disk_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in sm_disk_extend() argument
44 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_extend()
49 static int sm_disk_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_blocks() argument
51 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_blocks()
58 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_free() argument
60 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_free()
67 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_get_count() argument
[all …]
Ddm-space-map-metadata.c169 struct dm_space_map sm; member
276 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy() argument
278 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_destroy()
283 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks() argument
285 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_blocks()
292 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free() argument
294 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_free()
302 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() argument
307 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_count()
342 static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm, in sm_metadata_count_is_more_than_one() argument
[all …]
Ddm-transaction-manager.c95 struct dm_space_map *sm; member
163 struct dm_space_map *sm) in dm_tm_create() argument
175 tm->sm = sm; in dm_tm_create()
219 r = dm_sm_commit(tm->sm); in dm_tm_pre_commit()
249 r = dm_sm_new_block(tm->sm, &new_block); in dm_tm_new_block()
255 dm_sm_dec_block(tm->sm, new_block); in dm_tm_new_block()
276 r = dm_sm_new_block(tm->sm, &new); in __shadow_block()
280 r = dm_sm_dec_block(tm->sm, orig); in __shadow_block()
317 r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children); in dm_tm_shadow_block()
363 dm_sm_inc_block(tm->sm, b); in dm_tm_inc()
[all …]
/linux-6.12.1/drivers/mfd/
Dsm501.c133 static void sm501_dump_clk(struct sm501_devdata *sm) in sm501_dump_clk() argument
135 unsigned long misct = smc501_readl(sm->regs + SM501_MISC_TIMING); in sm501_dump_clk()
136 unsigned long pm0 = smc501_readl(sm->regs + SM501_POWER_MODE_0_CLOCK); in sm501_dump_clk()
137 unsigned long pm1 = smc501_readl(sm->regs + SM501_POWER_MODE_1_CLOCK); in sm501_dump_clk()
138 unsigned long pmc = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL); in sm501_dump_clk()
163 dev_dbg(sm->dev, "MISCT=%08lx, PM0=%08lx, PM1=%08lx\n", in sm501_dump_clk()
166 dev_dbg(sm->dev, "PLL2 = %ld.%ld MHz (%ld), SDCLK0=%08lx, SDCLK1=%08lx\n", in sm501_dump_clk()
169 dev_dbg(sm->dev, "SDRAM: PM0=%ld, PM1=%ld\n", sdclk0, sdclk1); in sm501_dump_clk()
171 dev_dbg(sm->dev, "PM0[%c]: " in sm501_dump_clk()
180 dev_dbg(sm->dev, "PM1[%c]: " in sm501_dump_clk()
[all …]
/linux-6.12.1/tools/testing/selftests/filesystems/statmount/
Dstatmount_test.c238 struct statmount sm; in test_statmount_zero_mask() local
241 ret = statmount(root_id, 0, 0, &sm, sizeof(sm), 0); in test_statmount_zero_mask()
247 if (sm.size != sizeof(sm)) { in test_statmount_zero_mask()
249 sm.size, (uint32_t) sizeof(sm)); in test_statmount_zero_mask()
252 if (sm.mask != 0) { in test_statmount_zero_mask()
254 (unsigned long long) sm.mask); in test_statmount_zero_mask()
263 struct statmount sm; in test_statmount_mnt_basic() local
267 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0); in test_statmount_mnt_basic()
273 if (sm.size != sizeof(sm)) { in test_statmount_mnt_basic()
275 sm.size, (uint32_t) sizeof(sm)); in test_statmount_mnt_basic()
[all …]
Dstatmount_test_ns.c168 struct statmount sm; in _test_statmount_mnt_ns_id() local
181 ret = statmount(root_id, 0, STATMOUNT_MNT_NS_ID, &sm, sizeof(sm), 0); in _test_statmount_mnt_ns_id()
187 if (sm.size != sizeof(sm)) { in _test_statmount_mnt_ns_id()
188 ksft_print_msg("unexpected size: %u != %u\n", sm.size, in _test_statmount_mnt_ns_id()
189 (uint32_t)sizeof(sm)); in _test_statmount_mnt_ns_id()
192 if (sm.mask != STATMOUNT_MNT_NS_ID) { in _test_statmount_mnt_ns_id()
197 if (sm.mnt_ns_id != mnt_ns_id) { in _test_statmount_mnt_ns_id()
199 (unsigned long long)sm.mnt_ns_id, in _test_statmount_mnt_ns_id()
256 struct statmount sm; in validate_external_listmount() local
258 ret = statmount(list[i], mnt_ns_id, STATMOUNT_MNT_NS_ID, &sm, in validate_external_listmount()
[all …]
/linux-6.12.1/drivers/net/fddi/skfp/
Dsmt.c172 smc->sm.smt_tid = 0 ; in smt_agent_init()
180 smc->sm.pend[i] = 0 ; in smt_agent_init()
181 smc->sm.please_reconnect = 0 ; in smt_agent_init()
182 smc->sm.uniq_ticks = 0 ; in smt_agent_init()
195 smt_timer_start(smc,&smc->sm.smt_timer, (u_long)1000000L, in smt_agent_task()
208 count = ((time - smc->sm.last_tok_time[mac_index]) * in smt_emulate_token_ct()
222 smc->sm.last_tok_time[mac_index] = time; in smt_emulate_token_ct()
236 if (smc->sm.please_reconnect) { in smt_event()
237 smc->sm.please_reconnect -- ; in smt_event()
238 if (smc->sm.please_reconnect == 0) { in smt_event()
[all …]
Dess.c78 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
98 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
112 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument
131 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) { in ess_raf_received_pack()
140 if (!(cmd = (struct smt_p_0016 *) sm_to_para(smc,sm,SMT_P0016))) { in ess_raf_received_pack()
148 DB_ESSN(2, "fc %x ft %x", sm->smt_class, sm->smt_type); in ess_raf_received_pack()
149 DB_ESSN(2, "ver %x tran %x", sm->smt_version, sm->smt_tid); in ess_raf_received_pack()
150 DB_ESSN(2, "stn_id %pM", &sm->smt_source); in ess_raf_received_pack()
152 DB_ESSN(2, "infolen %x res %lx", sm->smt_len, msg_res_type); in ess_raf_received_pack()
167 if (sm->smt_type == SMT_REQUEST) { in ess_raf_received_pack()
[all …]
/linux-6.12.1/drivers/scsi/isci/
Dphy.c313 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_link_layer_initialization()
336 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in phy_sata_timeout()
392 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_initialize()
466 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_start()
474 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_start()
480 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_stop()
500 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_stop()
506 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_reset()
514 sci_change_state(&iphy->sm, SCI_PHY_RESETTING); in sci_phy_reset()
520 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_consume_power_handler()
[all …]
Dremote_device.c238 dev_state_name(idev->sm.current_state_id), in isci_remote_device_terminate_requests()
241 rnc_state_name(idev->rnc.sm.current_state_id), in isci_remote_device_terminate_requests()
271 dev_state_name(idev->sm.current_state_id), in isci_remote_device_terminate_requests()
274 rnc_state_name(idev->rnc.sm.current_state_id), in isci_remote_device_terminate_requests()
329 sci_change_state(&idev->sm, SCI_DEV_STOPPED); in rnc_destruct_done()
341 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_stop() local
342 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_stop()
362 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
372 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
390 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
[all …]
Dremote_node_context.c87 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready()
98 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended()
268 static void sci_remote_node_context_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_initial_state_enter() argument
270 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_initial_state_enter()
277 if (sm->previous_state_id == SCI_RNC_INVALIDATING) { in sci_remote_node_context_initial_state_enter()
286 static void sci_remote_node_context_posting_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_posting_state_enter() argument
288 struct sci_remote_node_context *sci_rnc = container_of(sm, typeof(*sci_rnc), sm); in sci_remote_node_context_posting_state_enter()
293 static void sci_remote_node_context_invalidating_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_invalidating_state_enter() argument
295 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_invalidating_state_enter()
302 static void sci_remote_node_context_resuming_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_resuming_state_enter() argument
[all …]
Dhost.c147 void sci_init_sm(struct sci_base_state_machine *sm, in sci_init_sm() argument
152 sm->initial_state_id = initial_state; in sci_init_sm()
153 sm->previous_state_id = initial_state; in sci_init_sm()
154 sm->current_state_id = initial_state; in sci_init_sm()
155 sm->state_table = state_table; in sci_init_sm()
157 handler = sm->state_table[initial_state].enter_state; in sci_init_sm()
159 handler(sm); in sci_init_sm()
163 void sci_change_state(struct sci_base_state_machine *sm, u32 next_state) in sci_change_state() argument
167 handler = sm->state_table[sm->current_state_id].exit_state; in sci_change_state()
169 handler(sm); in sci_change_state()
[all …]
Dport.c298 struct sci_base_state_machine *sm = &iport->sm; in port_state_machine_change() local
299 enum sci_port_states old_state = sm->current_state_id; in port_state_machine_change()
304 sci_change_state(sm, state); in port_state_machine_change()
708 struct sci_base_state_machine *sm = &iport->sm; in sci_port_general_link_up_handler() local
711 if (sm->current_state_id == SCI_PORT_RESETTING) in sci_port_general_link_up_handler()
789 current_state = iport->sm.current_state_id; in port_timeout()
943 static void sci_port_ready_substate_waiting_enter(struct sci_base_state_machine *sm) in sci_port_ready_substate_waiting_enter() argument
945 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_waiting_enter()
959 struct sci_base_state_machine *sm) in scic_sds_port_ready_substate_waiting_exit() argument
961 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in scic_sds_port_ready_substate_waiting_exit()
[all …]
/linux-6.12.1/fs/xfs/scrub/
Dscrub.c192 sc->sm->sm_type = sub->old_smtype; in xchk_scrub_free_subord()
193 sc->sm->sm_flags = sub->old_smflags | in xchk_scrub_free_subord()
194 (sc->sm->sm_flags & XFS_SCRUB_FLAGS_OUT); in xchk_scrub_free_subord()
222 if (error == 0 && (sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR)) in xchk_teardown()
450 struct xfs_scrub_metadata *sm) in xchk_validate_inputs() argument
457 sm->sm_flags &= ~XFS_SCRUB_FLAGS_OUT; in xchk_validate_inputs()
458 if (sm->sm_flags & ~XFS_SCRUB_FLAGS_IN) in xchk_validate_inputs()
461 if (memchr_inv(sm->sm_reserved, 0, sizeof(sm->sm_reserved))) in xchk_validate_inputs()
466 if (sm->sm_type >= XFS_SCRUB_TYPE_NR) in xchk_validate_inputs()
468 ops = &meta_scrub_ops[sm->sm_type]; in xchk_validate_inputs()
[all …]
Dcommon.c88 sc->sm, *error); in __xchk_process_error()
102 sc->sm->sm_flags |= errflag; in __xchk_process_error()
150 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_fblock_process_error()
165 sc->sm->sm_flags |= errflag; in __xchk_fblock_process_error()
216 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_PREEN; in xchk_block_set_preen()
230 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_PREEN; in xchk_ino_set_preen()
239 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_CORRUPT; in xchk_set_corrupt()
249 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_CORRUPT; in xchk_block_set_corrupt()
261 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_CORRUPT; in xchk_qcheck_set_corrupt()
272 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_XCORRUPT; in xchk_block_xref_set_corrupt()
[all …]
Dstats.c186 const struct xfs_scrub_metadata *sm, in xchk_stats_merge_one() argument
191 if (sm->sm_type >= XFS_SCRUB_TYPE_NR) { in xchk_stats_merge_one()
192 ASSERT(sm->sm_type < XFS_SCRUB_TYPE_NR); in xchk_stats_merge_one()
196 css = &cs->cs_stats[sm->sm_type]; in xchk_stats_merge_one()
199 if (!(sm->sm_flags & XFS_SCRUB_OFLAG_UNCLEAN)) in xchk_stats_merge_one()
201 if (sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_stats_merge_one()
203 if (sm->sm_flags & XFS_SCRUB_OFLAG_PREEN) in xchk_stats_merge_one()
205 if (sm->sm_flags & XFS_SCRUB_OFLAG_XFAIL) in xchk_stats_merge_one()
207 if (sm->sm_flags & XFS_SCRUB_OFLAG_XCORRUPT) in xchk_stats_merge_one()
209 if (sm->sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE) in xchk_stats_merge_one()
[all …]
Dhealth.c131 if (!(sc->sm->sm_flags & (XFS_SCRUB_OFLAG_CORRUPT | in xchk_mark_healthy_if_clean()
195 if (sc->sm->sm_type == XFS_SCRUB_TYPE_HEALTHY && in xchk_update_health()
196 !(sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) { in xchk_update_health()
204 bad = (sc->sm->sm_flags & (XFS_SCRUB_OFLAG_CORRUPT | in xchk_update_health()
206 switch (type_to_health_flag[sc->sm->sm_type].group) { in xchk_update_health()
208 pag = xfs_perag_get(sc->mp, sc->sm->sm_agno); in xchk_update_health()
227 if (sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR) in xchk_update_health()
267 if (sc->sm->sm_type == sm_type) in xchk_ag_btree_del_cursor_if_sick()
277 type_to_health_flag[sc->sm->sm_type].group == XHG_AG) in xchk_ag_btree_del_cursor_if_sick()
281 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_XFAIL; in xchk_ag_btree_del_cursor_if_sick()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxgm200.c52 u8 sm, i; in gm200_grctx_generate_smid_config() local
54 for (sm = 0; sm < gr->sm_nr; sm++) { in gm200_grctx_generate_smid_config()
55 const u8 gpc = gr->sm[sm].gpc; in gm200_grctx_generate_smid_config()
56 const u8 tpc = gr->sm[sm].tpc; in gm200_grctx_generate_smid_config()
57 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gm200_grctx_generate_smid_config()
58 gpcs[gpc] |= sm << (tpc * 8); in gm200_grctx_generate_smid_config()
Dctxgp100.c111 u8 sm, i; in gp100_grctx_generate_smid_config() local
113 for (sm = 0; sm < gr->sm_nr; sm++) { in gp100_grctx_generate_smid_config()
114 const u8 gpc = gr->sm[sm].gpc; in gp100_grctx_generate_smid_config()
115 const u8 tpc = gr->sm[sm].tpc; in gp100_grctx_generate_smid_config()
116 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gp100_grctx_generate_smid_config()
117 gpcs[gpc + (gr->func->gpc_nr * (tpc / 4))] |= sm << ((tpc % 4) * 8); in gp100_grctx_generate_smid_config()
Dtu102.c39 int sm; in tu102_gr_init_fs() local
44 for (sm = 0; sm < gr->sm_nr; sm++) { in tu102_gr_init_fs()
45 int tpc = gv100_gr_nonpes_aware_tpc(gr, gr->sm[sm].gpc, gr->sm[sm].tpc); in tu102_gr_init_fs()
47 nvkm_wr32(device, GPC_UNIT(gr->sm[sm].gpc, 0x0c10 + tpc * 4), sm); in tu102_gr_init_fs()
/linux-6.12.1/drivers/scsi/csiostor/
Dcsio_scsi.h219 list_add_tail(&ioreq->sm.sm_list, &scm->ioreq_freelist); in csio_put_scsi_ioreq()
264 csio_post_event(&ioreq->sm, CSIO_SCSIE_COMPLETED); in csio_scsi_completed()
265 if (csio_list_deleted(&ioreq->sm.sm_list)) in csio_scsi_completed()
266 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_completed()
272 csio_post_event(&ioreq->sm, CSIO_SCSIE_ABORTED); in csio_scsi_aborted()
273 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_aborted()
279 csio_post_event(&ioreq->sm, CSIO_SCSIE_CLOSED); in csio_scsi_closed()
280 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_closed()
286 csio_post_event(&ioreq->sm, CSIO_SCSIE_DRVCLEANUP); in csio_scsi_drvcleanup()
298 csio_post_event(&ioreq->sm, CSIO_SCSIE_START_IO); in csio_scsi_start_io()
[all …]
/linux-6.12.1/sound/soc/sof/
Dcontrol.c21 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_get() local
22 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_get()
36 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_put() local
37 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_put()
50 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_info() local
51 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_info()
55 if (!sm->platform_max) in snd_sof_volume_info()
56 sm->platform_max = sm->max; in snd_sof_volume_info()
57 platform_max = sm->platform_max; in snd_sof_volume_info()
66 uinfo->value.integer.max = platform_max - sm->min; in snd_sof_volume_info()
[all …]
/linux-6.12.1/drivers/char/tpm/
Dtpm_crb.c93 u32 sm; member
139 if (priv->sm != ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON) in crb_try_pluton_doorbell()
176 if ((priv->sm == ACPI_TPM2_START_METHOD) || in __crb_go_idle()
177 (priv->sm == ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD) || in __crb_go_idle()
178 (priv->sm == ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC)) in __crb_go_idle()
225 if ((priv->sm == ACPI_TPM2_START_METHOD) || in __crb_cmd_ready()
226 (priv->sm == ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD) || in __crb_cmd_ready()
227 (priv->sm == ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC)) in __crb_cmd_ready()
414 if (priv->sm == ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON) in crb_send()
426 if ((priv->sm == ACPI_TPM2_COMMAND_BUFFER) || in crb_send()
[all …]
/linux-6.12.1/fs/ceph/
Dsnap.c1192 struct ceph_snapid_map *sm, *exist; in ceph_get_snapid_map() local
1219 sm = kmalloc(sizeof(*sm), GFP_NOFS); in ceph_get_snapid_map()
1220 if (!sm) in ceph_get_snapid_map()
1223 ret = get_anon_bdev(&sm->dev); in ceph_get_snapid_map()
1225 kfree(sm); in ceph_get_snapid_map()
1229 INIT_LIST_HEAD(&sm->lru); in ceph_get_snapid_map()
1230 atomic_set(&sm->ref, 1); in ceph_get_snapid_map()
1231 sm->snap = snap; in ceph_get_snapid_map()
1252 rb_link_node(&sm->node, parent, p); in ceph_get_snapid_map()
1253 rb_insert_color(&sm->node, &mdsc->snapid_map_tree); in ceph_get_snapid_map()
[all …]

12345678