Home
last modified time | relevance | path

Searched refs:oinfo (Results 1 – 25 of 37) sorted by relevance

12

/linux/fs/ocfs2/
H A Dquota_global.c117 struct ocfs2_mem_dqinfo *oinfo = in ocfs2_global_is_id() local
120 if (qtree_entry_unused(&oinfo->dqi_gi, dp)) in ocfs2_global_is_id()
170 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_quota_read() local
171 struct inode *gqinode = oinfo->dqi_gqinode; in ocfs2_quota_read()
220 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in ocfs2_quota_write() local
221 struct inode *gqinode = oinfo->dqi_gqinode; in ocfs2_quota_write()
246 oinfo->dqi_gqi_bh, in ocfs2_quota_write()
294 ocfs2_mark_inode_dirty(handle, gqinode, oinfo->dqi_gqi_bh); in ocfs2_quota_write()
298 int ocfs2_lock_global_qf(struct ocfs2_mem_dqinfo *oinfo, int ex) in ocfs2_lock_global_qf() argument
303 status = ocfs2_inode_lock(oinfo->dqi_gqinode, &bh, ex); in ocfs2_lock_global_qf()
[all …]
H A Dquota_local.c282 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in olq_update_info() local
288 ldinfo->dqi_flags = cpu_to_le32(oinfo->dqi_flags); in olq_update_info()
289 ldinfo->dqi_chunks = cpu_to_le32(oinfo->dqi_chunks); in olq_update_info()
290 ldinfo->dqi_blocks = cpu_to_le32(oinfo->dqi_blocks); in olq_update_info()
463 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_recover_local_quota_file() local
511 status = ocfs2_lock_global_qf(oinfo, 1); in ocfs2_recover_local_quota_file()
562 ocfs2_unlock_global_qf(oinfo, 1); in ocfs2_recover_local_quota_file()
690 struct ocfs2_mem_dqinfo *oinfo; in ocfs2_local_read_info() local
699 oinfo = kmalloc(sizeof(struct ocfs2_mem_dqinfo), GFP_NOFS); in ocfs2_local_read_info()
700 if (!oinfo) { in ocfs2_local_read_info()
[all …]
H A Dquota.h110 int ocfs2_lock_global_qf(struct ocfs2_mem_dqinfo *oinfo, int ex);
111 void ocfs2_unlock_global_qf(struct ocfs2_mem_dqinfo *oinfo, int ex);
H A Ddlmglue.c4171 struct ocfs2_mem_dqinfo *oinfo = ocfs2_lock_res_qinfo(lockres); in ocfs2_set_qinfo_lvb() local
4172 struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb, in ocfs2_set_qinfo_lvb()
4173 oinfo->dqi_gi.dqi_type); in ocfs2_set_qinfo_lvb()
4179 lvb->lvb_syncms = cpu_to_be32(oinfo->dqi_syncms); in ocfs2_set_qinfo_lvb()
4180 lvb->lvb_blocks = cpu_to_be32(oinfo->dqi_gi.dqi_blocks); in ocfs2_set_qinfo_lvb()
4181 lvb->lvb_free_blk = cpu_to_be32(oinfo->dqi_gi.dqi_free_blk); in ocfs2_set_qinfo_lvb()
4182 lvb->lvb_free_entry = cpu_to_be32(oinfo->dqi_gi.dqi_free_entry); in ocfs2_set_qinfo_lvb()
4185 void ocfs2_qinfo_unlock(struct ocfs2_mem_dqinfo *oinfo, int ex) in ocfs2_qinfo_unlock() argument
4187 struct ocfs2_lock_res *lockres = &oinfo->dqi_gqlock; in ocfs2_qinfo_unlock()
4188 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); in ocfs2_qinfo_unlock()
[all …]
H A Ddlmglue.h176 int ocfs2_qinfo_lock(struct ocfs2_mem_dqinfo *oinfo, int ex);
177 void ocfs2_qinfo_unlock(struct ocfs2_mem_dqinfo *oinfo, int ex);
/linux/fs/xfs/libxfs/
H A Dxfs_rmap.h87 const struct xfs_owner_info *oinfo, in xfs_owner_info_unpack() argument
94 *owner = oinfo->oi_owner; in xfs_owner_info_unpack()
95 *offset = oinfo->oi_offset; in xfs_owner_info_unpack()
96 if (oinfo->oi_flags & XFS_OWNER_INFO_ATTR_FORK) in xfs_owner_info_unpack()
98 if (oinfo->oi_flags & XFS_OWNER_INFO_BMBT_BLOCK) in xfs_owner_info_unpack()
105 struct xfs_owner_info *oinfo, in xfs_owner_info_pack() argument
110 oinfo->oi_owner = owner; in xfs_owner_info_pack()
111 oinfo->oi_offset = XFS_RMAP_OFF(offset); in xfs_owner_info_pack()
112 oinfo->oi_flags = 0; in xfs_owner_info_pack()
114 oinfo->oi_flags |= XFS_OWNER_INFO_ATTR_FORK; in xfs_owner_info_pack()
[all …]
H A Dxfs_rmap.c680 const struct xfs_owner_info *oinfo) in xfs_rmap_unmap() argument
692 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags); in xfs_rmap_unmap()
697 trace_xfs_rmap_unmap(cur, bno, len, unwritten, oinfo); in xfs_rmap_unmap()
871 trace_xfs_rmap_unmap_done(cur, bno, len, unwritten, oinfo); in xfs_rmap_unmap()
913 const struct xfs_owner_info *oinfo) in xfs_rmap_update_hook() argument
920 .oinfo = *oinfo, /* struct copy */ in xfs_rmap_update_hook()
968 const struct xfs_owner_info *oinfo) in xfs_rmap_free() argument
979 false, oinfo); in xfs_rmap_free()
980 error = xfs_rmap_unmap(cur, bno, len, false, oinfo); in xfs_rmap_free()
1025 const struct xfs_owner_info *oinfo) in xfs_rmap_map() argument
[all …]
H A Dxfs_alloc.h57 struct xfs_owner_info oinfo; /* owner of blocks being allocated */ member
83 const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type);
149 const struct xfs_owner_info *oinfo, /* extent owner */
159 const struct xfs_owner_info *oinfo, in xfs_free_extent() argument
162 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); in xfs_free_extent()
234 xfs_filblks_t len, const struct xfs_owner_info *oinfo,
H A Dxfs_alloc.c2046 const struct xfs_owner_info *oinfo, in xfs_free_ag_extent() argument
2068 if (!xfs_rmap_should_skip_owner_update(oinfo)) { in xfs_free_ag_extent()
2069 error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo); in xfs_free_ag_extent()
2639 const struct xfs_owner_info *oinfo, in xfs_defer_extent_free() argument
2672 if (oinfo) { in xfs_defer_extent_free()
2673 ASSERT(oinfo->oi_offset == 0); in xfs_defer_extent_free()
2675 if (oinfo->oi_flags & XFS_OWNER_INFO_ATTR_FORK) in xfs_defer_extent_free()
2677 if (oinfo->oi_flags & XFS_OWNER_INFO_BMBT_BLOCK) in xfs_defer_extent_free()
2679 xefi->xefi_owner = oinfo->oi_owner; in xfs_defer_extent_free()
2693 const struct xfs_owner_info *oinfo, in xfs_free_extent_later() argument
[all …]
H A Dxfs_bmap_btree.c220 xfs_rmap_ino_bmbt_owner(&args.oinfo, cur->bc_ino.ip->i_ino, in xfs_bmbt_alloc_block()
280 struct xfs_owner_info oinfo; in xfs_bmbt_free_block() local
283 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, cur->bc_ino.whichfork); in xfs_bmbt_free_block()
284 error = xfs_free_extent_later(cur->bc_tp, fsbno, 1, &oinfo, in xfs_bmbt_free_block()
/linux/fs/xfs/scrub/
H A Dnewbt.c89 const struct xfs_owner_info *oinfo, in xrep_newbt_init_ag() argument
95 xnr->oinfo = *oinfo; /* structure copy */ in xrep_newbt_init_ag()
109 const struct xfs_owner_info *oinfo) in xrep_newbt_init_inode() argument
117 xrep_newbt_init_ag(xnr, sc, oinfo, in xrep_newbt_init_inode()
135 struct xfs_owner_info oinfo; in xrep_newbt_init_metadir_inode() local
140 xfs_rmap_ino_bmbt_owner(&oinfo, sc->ip->i_ino, XFS_DATA_FORK); in xrep_newbt_init_metadir_inode()
154 xrep_newbt_init_ag(xnr, sc, &oinfo, in xrep_newbt_init_metadir_inode()
200 ASSERT(xnr->oinfo.oi_offset == 0); in xrep_newbt_add_blocks()
230 .oinfo = xnr->oinfo, in xrep_newbt_add_extent()
272 .oinfo = xnr->oinfo, in xrep_newbt_alloc_ag_blocks()
[all …]
H A Dreap.c95 const struct xfs_owner_info *oinfo; member
346 error = xfs_rmap_has_other_keys(cur, agbno, 1, rs->oinfo, in xreap_agextent_select()
362 error = xfs_rmap_has_other_keys(cur, bno, 1, rs->oinfo, in xreap_agextent_select()
421 if (rs->oinfo == &XFS_RMAP_OINFO_COW) { in xreap_agextent_iter()
433 *aglenp, rs->oinfo); in xreap_agextent_iter()
457 if (rs->oinfo == &XFS_RMAP_OINFO_COW) { in xreap_agextent_iter()
487 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, in xreap_agextent_iter()
552 const struct xfs_owner_info *oinfo, in xrep_reap_agblocks() argument
557 .oinfo = oinfo, in xrep_reap_agblocks()
665 const struct xfs_owner_info *oinfo) in xrep_reap_fsblocks() argument
[all …]
H A Dreap.h13 const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type);
15 const struct xfs_owner_info *oinfo);
22 const struct xfs_owner_info *oinfo);
H A Dnewbt.h48 struct xfs_owner_info oinfo; member
62 const struct xfs_owner_info *oinfo, xfs_fsblock_t alloc_hint,
65 int whichfork, const struct xfs_owner_info *oinfo);
H A Drtrmap.c248 struct xfs_owner_info oinfo; in xchk_rtrmapbt() local
256 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, XFS_DATA_FORK); in xchk_rtrmapbt()
257 return xchk_btree(sc, sc->sr.rmap_cur, xchk_rtrmapbt_rec, &oinfo, &cr); in xchk_rtrmapbt()
306 const struct xfs_owner_info *oinfo) in xchk_xref_is_only_rt_owned_by() argument
314 error = xfs_rmap_count_owners(sc->sr.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_rt_owned_by()
H A Dscrub.h314 xfs_extlen_t len, const struct xfs_owner_info *oinfo);
316 xfs_extlen_t len, const struct xfs_owner_info *oinfo);
333 xfs_extlen_t len, const struct xfs_owner_info *oinfo);
344 # define xchk_xref_is_only_rt_owned_by(sc, bno, len, oinfo) do { } while (0) argument
H A Dbtree.h44 const struct xfs_owner_info *oinfo; member
67 xchk_btree_rec_fn scrub_fn, const struct xfs_owner_info *oinfo,
H A Dbmap.c327 struct xfs_owner_info oinfo; in xchk_bmap_rt_iextent_xref() local
355 xfs_rmap_ino_owner(&oinfo, info->sc->ip->i_ino, in xchk_bmap_rt_iextent_xref()
358 irec->br_blockcount, &oinfo); in xchk_bmap_rt_iextent_xref()
388 struct xfs_owner_info oinfo; in xchk_bmap_iextent_xref() local
410 xfs_rmap_ino_owner(&oinfo, info->sc->ip->i_ino, in xchk_bmap_iextent_xref()
413 irec->br_blockcount, &oinfo); in xchk_bmap_iextent_xref()
422 xfs_rmap_ino_owner(&oinfo, info->sc->ip->i_ino, in xchk_bmap_iextent_xref()
425 &oinfo); in xchk_bmap_iextent_xref()
587 struct xfs_owner_info oinfo; in xchk_bmap_btree() local
603 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
[all …]
H A Drmap_repair.c287 const struct xfs_owner_info *oinfo) in xrep_rmap_stash_bitmap() argument
291 .owner = oinfo->oi_owner, in xrep_rmap_stash_bitmap()
295 if (oinfo->oi_flags & XFS_OWNER_INFO_ATTR_FORK) in xrep_rmap_stash_bitmap()
297 if (oinfo->oi_flags & XFS_OWNER_INFO_BMBT_BLOCK) in xrep_rmap_stash_bitmap()
413 struct xfs_owner_info oinfo; in xrep_rmap_scan_iroot_btree() local
426 xfs_rmap_ino_bmbt_owner(&oinfo, rf->accum.rm_owner, rf->whichfork); in xrep_rmap_scan_iroot_btree()
427 error = xrep_rmap_stash_bitmap(rr, &rf->bmbt_blocks, &oinfo); in xrep_rmap_scan_iroot_btree()
1431 rr->new_btree.oinfo = XFS_RMAP_OINFO_AG; in xrep_rmap_build_new_tree()
1621 if (!xrep_rmapbt_want_live_update(&rr->iscan, &p->oinfo)) in xrep_rmapbt_live_update()
1633 p->blockcount, &p->oinfo, p->unwritten); in xrep_rmapbt_live_update()
H A Dbmap_repair.c749 struct xfs_owner_info oinfo; in xrep_bmap_build_new_fork() local
763 xfs_rmap_ino_bmbt_owner(&oinfo, sc->ip->i_ino, rb->whichfork); in xrep_bmap_build_new_fork()
765 &oinfo); in xrep_bmap_build_new_fork()
833 struct xfs_owner_info oinfo; in xrep_bmap_remove_old_tree() local
836 xfs_rmap_ino_bmbt_owner(&oinfo, sc->ip->i_ino, rb->whichfork); in xrep_bmap_remove_old_tree()
837 return xrep_reap_fsblocks(sc, &rb->old_bmbt_blocks, &oinfo); in xrep_bmap_remove_old_tree()
H A Dcommon.c377 const struct xfs_owner_info *oinfo; member
392 oinfo_attr = sroi->oinfo->oi_flags & XFS_OWNER_INFO_ATTR_FORK; in xchk_count_rmap_ownedby_irec()
394 if (rec->rm_owner != sroi->oinfo->oi_owner) in xchk_count_rmap_ownedby_irec()
411 const struct xfs_owner_info *oinfo, in xchk_count_rmap_ownedby_ag() argument
415 .oinfo = oinfo, in xchk_count_rmap_ownedby_ag()
H A Dbtree.c404 xchk_xref_is_only_owned_by(bs->sc, agbno, 1, bs->oinfo); in xchk_btree_check_block_owner()
681 const struct xfs_owner_info *oinfo, in xchk_btree() argument
711 bs->oinfo = oinfo; in xchk_btree()
H A Drtrmap_repair.c454 const struct xfs_owner_info *oinfo) in xrep_rtrmap_stash_bitmap() argument
458 .owner = oinfo->oi_owner, in xrep_rtrmap_stash_bitmap()
877 if (!xrep_rtrmapbt_want_live_update(&rr->iscan, &p->oinfo)) in xrep_rtrmapbt_live_update()
889 p->blockcount, &p->oinfo, p->unwritten); in xrep_rtrmapbt_live_update()
/linux/drivers/mtd/
H A Dmtdchar.c1142 struct otp_info oinfo; in mtdchar_ioctl() local
1146 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
1149 ret = mtd_lock_user_prot_reg(mtd, oinfo.start, oinfo.length); in mtdchar_ioctl()
1151 ret = mtd_erase_user_prot_reg(mtd, oinfo.start, oinfo.length); in mtdchar_ioctl()
/linux/drivers/regulator/
H A Dti-abb-regulator.c308 struct ti_abb_info *info, *oinfo; in ti_abb_set_voltage_sel() local
347 oinfo = &abb->info[abb->current_info_idx]; in ti_abb_set_voltage_sel()
348 if (!memcmp(info, oinfo, sizeof(*info))) { in ti_abb_set_voltage_sel()

12