Home
last modified time | relevance | path

Searched refs:i_mount (Results 1 – 25 of 76) sorted by relevance

1234

/linux-6.15/fs/xfs/
H A Dxfs_dir2_readdir.c52 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_getdents()
119 if (XFS_IS_CORRUPT(dp->i_mount, in xfs_dir2_sf_getdents()
198 xfs_dir2_data_entsize(dp->i_mount, dep->namelen); in xfs_dir2_block_getdents()
213 if (XFS_IS_CORRUPT(dp->i_mount, in xfs_dir2_block_getdents()
222 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_block_getdents()
355 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_leaf_getdents()
469 if (XFS_IS_CORRUPT(dp->i_mount, in xfs_dir2_leaf_getdents()
478 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_leaf_getdents()
523 if (xfs_is_shutdown(dp->i_mount)) in xfs_readdir()
530 XFS_STATS_INC(dp->i_mount, xs_dir_getdents); in xfs_readdir()
[all …]
H A Dxfs_bmap_util.c61 XFS_FSB_TO_BB(ip->i_mount, count_fsb), in xfs_zero_extent()
104 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_count_blocks()
254 struct xfs_mount *mp = ip->i_mount; in xfs_getbmap()
443 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_punch_delalloc_range()
506 struct xfs_mount *mp = ip->i_mount; in xfs_can_free_eofblocks()
580 struct xfs_mount *mp = ip->i_mount; in xfs_free_eofblocks()
651 xfs_mount_t *mp = ip->i_mount; in xfs_alloc_file_space()
784 struct xfs_mount *mp = ip->i_mount; in xfs_unmap_extent()
847 struct xfs_mount *mp = ip->i_mount; in xfs_free_file_space()
991 struct xfs_mount *mp = ip->i_mount; in xfs_collapse_file_space()
[all …]
H A Dxfs_attr_inactive.c57 if (XFS_IS_CORRUPT(dp->i_mount, nmap != 1)) in xfs_attr3_rmt_stale()
113 blkcnt = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
137 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_node_inactive()
155 xfs_da3_node_hdr_from_disk(dp->i_mount, &ichdr, bp->b_addr); in xfs_attr3_node_inactive()
232 xfs_da3_node_hdr_from_disk(dp->i_mount, &phdr, in xfs_attr3_node_inactive()
260 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_root_inactive()
334 mp = dp->i_mount; in xfs_attr_inactive()
H A Dxfs_inode.h27 struct xfs_mount *i_mount; /* fs mount struct ptr */ member
144 return XFS_LITINO(ip->i_mount); in xfs_inode_data_fork_size()
150 return XFS_LITINO(ip->i_mount) - xfs_inode_fork_boff(ip); in xfs_inode_attr_fork_size()
292 struct xfs_mount *mp = ip->i_mount; in xfs_is_internal_inode()
309 return xfs_has_zoned(ip->i_mount) && XFS_IS_REALTIME_INODE(ip); in xfs_is_zoned_inode()
349 return XFS_IS_REALTIME_INODE(ip) && ip->i_mount->m_sb.sb_rextsize > 1; in xfs_inode_has_bigrtalloc()
357 (ip)->i_mount->m_rtdev_targp : (ip)->i_mount->m_ddev_targp)
363 struct xfs_mount *mp = ip->i_mount; in xfs_inode_can_atomicwrite()
553 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
H A Dxfs_file.c134 struct xfs_mount *mp = ip->i_mount; in xfs_file_fsync()
304 struct xfs_mount *mp = XFS_I(inode)->i_mount; in xfs_file_read_iter()
334 struct xfs_mount *mp = ip->i_mount; in xfs_file_splice_read()
557 if (xfs_is_shutdown(ip->i_mount)) in xfs_dio_write_end_io()
932 xfs_flush_inodes(ip->i_mount); in xfs_file_buffered_write()
958 struct xfs_mount *mp = ip->i_mount; in xfs_file_buffered_write_zoned()
1028 if (xfs_is_shutdown(ip->i_mount)) in xfs_file_write_iter()
1070 if (xfs_has_wsync(ip->i_mount)) in xfs_file_sync_writes()
1422 struct xfs_mount *mp = src->i_mount; in xfs_file_remap_range()
1505 if (xfs_is_shutdown(ip->i_mount)) in xfs_dir_open()
[all …]
H A Dxfs_attr_list.c84 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
132 context->dp->i_mount, sfe, in xfs_attr_shortform_list()
146 sbp->hash = xfs_attr_hashval(dp->i_mount, sfe->flags, in xfs_attr_shortform_list()
187 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
223 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list_lookup()
320 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list()
443 struct xfs_mount *mp = context->dp->i_mount; in xfs_attr3_leaf_list_int()
516 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr3_leaf_list_int()
590 XFS_STATS_INC(dp->i_mount, xs_attr_list); in xfs_attr_list()
592 if (xfs_is_shutdown(dp->i_mount)) in xfs_attr_list()
H A Dxfs_icache.c115 ip->i_mount = mp; in xfs_inode_alloc()
175 XFS_STATS_DEC(ip->i_mount, vn_active); in __xfs_inode_free()
363 struct xfs_mount *mp = ip->i_mount; in xfs_iget_recycle()
439 xfs_warn(ip->i_mount, in xfs_iget_check_free_state()
442 xfs_agno_mark_sick(ip->i_mount, in xfs_iget_check_free_state()
449 xfs_warn(ip->i_mount, in xfs_iget_check_free_state()
452 xfs_agno_mark_sick(ip->i_mount, in xfs_iget_check_free_state()
520 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit()
1268 struct xfs_mount *mp = ip->i_mount; in xfs_blockgc_set_iflag()
1514 if (xfs_is_shutdown(ip->i_mount)) in xfs_blockgc_igrab()
[all …]
H A Dxfs_reflink.c233 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_trim_around_shared()
341 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_convert_cow()
440 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_fill_cow_hole()
507 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_fill_delalloc()
722 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write, in xfs_reflink_cancel_cow_range()
796 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_end_cow_extent()
1095 struct xfs_mount *mp = src->i_mount; in xfs_reflink_set_inode_flag()
1235 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_remap_extent()
1452 struct xfs_mount *mp = src->i_mount; in xfs_reflink_remap_blocks()
1656 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_inode_has_shared_extents()
[all …]
H A Dxfs_symlink.c36 struct xfs_mount *mp = ip->i_mount; in xfs_readlink()
66 if (XFS_IS_CORRUPT(ip->i_mount, !ip->i_df.if_data)) in xfs_readlink()
92 struct xfs_mount *mp = dp->i_mount; in xfs_symlink()
263 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_symlink_rmt()
328 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_symlink()
H A Dxfs_zone_space_resv.c124 struct xfs_mount *mp = ip->i_mount; in xfs_zoned_reserve_available()
205 struct xfs_mount *mp = ip->i_mount; in xfs_zoned_reserve_extents_greedy()
228 struct xfs_mount *mp = ip->i_mount; in xfs_zoned_space_reserve()
256 struct xfs_mount *mp = ip->i_mount; in xfs_zoned_space_unreserve()
H A Dxfs_ioctl.c449 struct xfs_mount *mp = ip->i_mount; in xfs_fill_fsxattr()
531 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags()
587 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_prepare_dax()
614 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans()
647 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize()
689 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize()
719 !xfs_has_projid32(ip->i_mount)) in xfs_ioctl_setattr_check_projid()
731 struct xfs_mount *mp = ip->i_mount; in xfs_fileattr_set()
969 if (ip->i_mount != tip->i_mount) in xfs_ioc_swapext()
975 if (xfs_is_shutdown(ip->i_mount)) in xfs_ioc_swapext()
[all …]
H A Dxfs_pnfs.c88 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_writeid, in xfs_fs_map_update_inode()
119 struct xfs_mount *mp = ip->i_mount; in xfs_fs_map_blocks()
234 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize()
265 struct xfs_mount *mp = ip->i_mount; in xfs_fs_commit_blocks()
H A Dxfs_inode.c544 if (xfs_is_shutdown(dp->i_mount)) in xfs_lookup()
658 struct xfs_mount *mp = dp->i_mount; in xfs_create()
798 struct xfs_mount *mp = dp->i_mount; in xfs_create_tmpfile()
1032 struct xfs_mount *mp = ip->i_mount; in xfs_itruncate_extents_flags()
1106 struct xfs_mount *mp = dp->i_mount; in xfs_inactive_dir()
1148 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_truncate()
1197 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_ifree()
1288 struct xfs_mount *mp = ip->i_mount; in xfs_inode_needs_inactive()
1340 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_health()
1390 mp = ip->i_mount; in xfs_inactive()
[all …]
H A Dxfs_aops.c56 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize()
110 struct xfs_mount *mp = ip->i_mount; in xfs_end_ioend()
216 struct xfs_mount *mp = ip->i_mount; in xfs_end_bio()
286 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks()
492 struct xfs_mount *mp = ip->i_mount; in xfs_discard_folio()
535 struct xfs_mount *mp = ip->i_mount; in xfs_zoned_map_blocks()
718 xfs_inodegc_flush(ip->i_mount); in xfs_vm_swap_activate()
H A Dxfs_iomap.c105 struct xfs_mount *mp = ip->i_mount; in xfs_bmbt_to_iomap()
190 struct xfs_mount *mp = ip->i_mount; in xfs_eof_alignment()
262 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_write_direct()
474 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_prealloc_size()
605 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten()
811 struct xfs_mount *mp = ip->i_mount; in xfs_direct_write_iomap_begin()
1214 struct xfs_mount *mp = ip->i_mount; in xfs_bmapi_reserve_delalloc()
1342 struct xfs_mount *mp = ip->i_mount; in xfs_zoned_buffered_write_iomap_begin()
1509 struct xfs_mount *mp = ip->i_mount; in xfs_buffered_write_iomap_begin()
1829 struct xfs_mount *mp = ip->i_mount; in xfs_read_iomap_begin()
[all …]
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_dir2_node.c68 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leafn_check()
330 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_get_buf()
658 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_addname()
809 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_entry()
1182 xfs_alert(dp->i_mount, in xfs_dir2_leafn_rebalance()
1332 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leafn_remove()
1343 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leafn_remove()
1699 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_node_add_datablk()
1964 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_node_addname_int()
1986 tagp = xfs_dir2_data_entry_tag_p(dp->i_mount, dep); in xfs_dir2_node_addname_int()
[all …]
H A Dxfs_da_btree.c92 state->mp = args->dp->i_mount; in xfs_da_state_alloc()
130 state->mp = state->args->dp->i_mount; in xfs_da_state_reset()
455 struct xfs_mount *mp = dp->i_mount; in xfs_da3_node_read_mapped()
541 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &ichdr); in xfs_da3_node_create()
2131 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2197 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2435 mp = dp->i_mount; in xfs_da3_swap_lastblock()
2475 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock()
2697 struct xfs_mount *mp = dp->i_mount; in xfs_dabuf_map()
2784 struct xfs_mount *mp = dp->i_mount; in xfs_da_get_buf()
[all …]
H A Dxfs_metadir.c88 struct xfs_mount *mp = dp->i_mount; in xfs_metadir_lookup()
166 xfs_parent_finish(upd->dp->i_mount, upd->ppargs); in xfs_metadir_teardown()
189 struct xfs_mount *mp = upd->dp->i_mount; in xfs_metadir_start_create()
254 struct xfs_mount *mp = upd->dp->i_mount; in xfs_metadir_create()
324 struct xfs_mount *mp = upd->dp->i_mount; in xfs_metadir_start_link()
378 struct xfs_mount *mp = upd->dp->i_mount; in xfs_metadir_link()
455 if (xfs_is_shutdown(dp->i_mount)) in xfs_metadir_mkdir()
H A Dxfs_dir2_leaf.c362 struct xfs_mount *mp = args->dp->i_mount; in xfs_dir3_leaf_init()
481 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_block_to_leaf()
521 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_to_leaf()
880 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_addname()
896 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_addname()
923 tagp = xfs_dir2_data_entry_tag_p(dp->i_mount, dep); in xfs_dir2_leaf_addname()
929 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leaf_addname()
1290 mp = dp->i_mount; in xfs_dir2_leaf_lookup_int()
1434 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_removename()
1475 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leaf_removename()
[all …]
H A Dxfs_inode_fork.c87 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
88 xfs_warn(ip->i_mount, in xfs_iformat_local()
91 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
113 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_extents()
128 xfs_warn(ip->i_mount, "corrupt inode %llu ((a)extents = %llu).", in xfs_iformat_extents()
180 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_btree()
221 xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork), in xfs_iformat_btree()
576 mp = ip->i_mount; in xfs_iflush_fork()
678 struct xfs_mount *mp = ip->i_mount; in xfs_ifork_verify_local_data()
743 struct xfs_mount *mp = ip->i_mount; in xfs_iext_count_extend()
H A Dxfs_dir2.c255 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
270 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_format()
348 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
438 XFS_STATS_INC(dp->i_mount, xs_dir_lookup); in xfs_dir_lookup()
442 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
504 XFS_STATS_INC(dp->i_mount, xs_dir_remove); in xfs_dir_removename()
510 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
570 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace()
615 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_grow_inode()
671 mp = dp->i_mount; in xfs_dir2_shrink_inode()
[all …]
H A Dxfs_dir2_block.c145 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
175 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_init()
211 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_block_need_space()
394 len = xfs_dir2_data_entsize(dp->i_mount, args->namelen); in xfs_dir2_block_addname()
497 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_addname()
581 tagp = xfs_dir2_data_entry_tag_p(dp->i_mount, dep); in xfs_dir2_block_addname()
587 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_addname()
844 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_removename()
958 mp = dp->i_mount; in xfs_dir2_leaf_to_block()
1052 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leaf_to_block()
[all …]
H A Dxfs_parent.c158 args->geo = child->i_mount->m_attr_geo; in xfs_parent_da_args_init()
179 if (XFS_IS_CORRUPT(child->i_mount, !xfs_inode_has_attr_fork(child))) { in xfs_parent_iread_extents()
348 if (!xfs_parent_sanity_check(ip->i_mount, parent_name, pptr)) { in xfs_parent_set()
371 if (!xfs_parent_sanity_check(ip->i_mount, parent_name, pptr)) { in xfs_parent_unset()
H A Dxfs_dir2_sf.c188 mp = dp->i_mount; in xfs_dir2_block_sfsize()
264 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_block_to_sf()
462 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_addname_easy()
510 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_addname_hard()
599 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_addname_pick()
665 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_check()
846 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_lookup()
921 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_removename()
1021 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_replace()
1136 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_toino4()
[all …]
/linux-6.15/fs/xfs/scrub/
H A Dreaddir.c37 struct xfs_mount *mp = dp->i_mount; in xchk_dir_walk_sf()
97 struct xfs_mount *mp = dp->i_mount; in xchk_dir_walk_block()
190 struct xfs_mount *mp = dp->i_mount; in xchk_dir_walk_leaf()
275 .geo = dp->i_mount->m_dir_geo, in xchk_dir_walk()
281 if (xfs_is_shutdown(dp->i_mount)) in xchk_dir_walk()
315 .geo = dp->i_mount->m_dir_geo, in xchk_dir_lookup()
320 .hashval = xfs_dir2_hashname(dp->i_mount, name), in xchk_dir_lookup()
327 if (xfs_is_shutdown(dp->i_mount)) in xchk_dir_lookup()

1234