Home
last modified time | relevance | path

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

1234

/linux/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()
209 filetype = xfs_dir2_data_get_ftype(dp->i_mount, dep); 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()
[all …]
H A Dxfs_bmap_util.c46 return xfs_rtb_to_daddr(ip->i_mount, fsb); in xfs_fsb_to_db()
47 return XFS_FSB_TO_DADDR(ip->i_mount, fsb); in xfs_fsb_to_db()
61 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()
184 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one()
185 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one()
208 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole()
209 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole()
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()
[all …]
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)
372 return xfs_can_sw_atomic_write(ip->i_mount); in xfs_inode_can_sw_atomic_write()
554 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
H A Dxfs_file.c120 return xfs_log_force_seq(ip->i_mount, seq, XFS_LOG_SYNC, in xfs_fsync_flush_log()
132 struct xfs_mount *mp = ip->i_mount; in xfs_file_fsync()
327 struct xfs_mount *mp = XFS_I(inode)->i_mount; in xfs_file_read_iter()
357 struct xfs_mount *mp = ip->i_mount; in xfs_file_splice_read()
580 if (xfs_is_shutdown(ip->i_mount)) in xfs_dio_write_end_io()
592 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, size); in xfs_dio_write_end_io()
666 struct xfs_mount *mp = XFS_I(iter->inode)->i_mount; in xfs_dio_zoned_submit_io()
755 ret = xfs_zoned_write_space_reserve(ip->i_mount, iocb, from, 0, &ac); in xfs_file_dio_write_zoned()
761 xfs_zoned_space_unreserve(ip->i_mount, &ac); in xfs_file_dio_write_zoned()
940 if ((iocb->ki_pos | count) & ip->i_mount->m_blockmask) in xfs_file_dio_write()
[all …]
H A Dxfs_icache.c115 ip->i_mount = mp; in xfs_inode_alloc()
175 XFS_STATS_DEC(ip->i_mount, xs_inodes_meta); in __xfs_inode_free()
177 XFS_STATS_DEC(ip->i_mount, xs_inodes_active); in __xfs_inode_free()
365 struct xfs_mount *mp = ip->i_mount; in xfs_iget_recycle()
427 xfs_warn(ip->i_mount, in xfs_iget_check_free_state()
430 xfs_agno_mark_sick(ip->i_mount, in xfs_iget_check_free_state()
431 XFS_INO_TO_AGNO(ip->i_mount, ip->i_ino), in xfs_iget_check_free_state()
437 xfs_warn(ip->i_mount, in xfs_iget_check_free_state()
440 xfs_agno_mark_sick(ip->i_mount, in xfs_iget_check_free_state()
441 XFS_INO_TO_AGNO(ip->i_mount, ip->i_ino), in xfs_iget_check_free_state()
[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_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()
715 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_cancel_cow_range()
719 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_cancel_cow_range()
722 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write, in xfs_reflink_cancel_cow_range()
907 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_end_cow_extent()
944 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_end_cow()
945 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_end_cow()
[all …]
H A Dxfs_ioctl.c83 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_fsbulkstat()
266 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_bulkstat()
451 struct xfs_mount *mp = ip->i_mount; in xfs_fill_fsxattr()
530 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags()
586 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_prepare_dax()
613 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans()
646 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize()
677 failaddr = xfs_inode_validate_extsize(ip->i_mount, in xfs_ioctl_setattr_check_extsize()
688 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize()
702 failaddr = xfs_inode_validate_cowextsize(ip->i_mount, in xfs_ioctl_setattr_check_cowextsize()
[all …]
H A Dxfs_pnfs.c86 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_writeid, in xfs_fs_map_update_inode()
117 struct xfs_mount *mp = ip->i_mount; in xfs_fs_map_blocks()
232 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize()
263 struct xfs_mount *mp = ip->i_mount; in xfs_fs_commit_blocks()
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_inode.c544 if (xfs_is_shutdown(dp->i_mount)) in xfs_lookup()
553 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup()
561 if (XFS_IS_CORRUPT(dp->i_mount, xfs_is_metadir_inode(*ipp))) { in xfs_lookup()
562 xfs_fs_mark_sick(dp->i_mount, XFS_SICK_FS_METADIR); 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()
920 struct xfs_mount *mp = tdp->i_mount; in xfs_link()
1043 struct xfs_mount *mp = ip->i_mount; in xfs_itruncate_extents_flags()
1118 struct xfs_mount *mp = dp->i_mount; in xfs_inactive_dir()
1160 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_truncate()
[all …]
H A Dxfs_iops.c542 struct xfs_mount *mp = ip->i_mount; in xfs_stat_blksize()
606 struct xfs_mount *mp = ip->i_mount; in xfs_get_atomic_write_min()
628 struct xfs_mount *mp = ip->i_mount; in xfs_get_atomic_write_max()
658 if (awu_max <= ip->i_mount->m_sb.sb_blocksize) in xfs_get_atomic_write_max_opt()
691 struct xfs_mount *mp = ip->i_mount; in xfs_vn_getattr()
762 struct xfs_mount *mp = XFS_I(d_inode(dentry))->i_mount; in xfs_vn_change_ok()
786 xfs_mount_t *mp = ip->i_mount; in xfs_setattr_nonsize()
915 struct xfs_mount *mp = ip->i_mount; in xfs_setattr_size()
1191 struct xfs_mount *mp = ip->i_mount; in xfs_vn_update_time()
1235 struct xfs_mount *mp = ip->i_mount; in xfs_vn_sync_lazytime()
[all …]
H A Dxfs_iomap.c44 xfs_alert_tag(ip->i_mount, XFS_PTAG_FSBLOCK_ZERO, in xfs_alert_fsblock_zero()
91 XFS_ERRORTAG_DELAY(ip->i_mount, XFS_ERRTAG_WRITE_DELAY_MS); in xfs_iomap_valid()
108 struct xfs_mount *mp = ip->i_mount; in xfs_bmbt_to_iomap()
180 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
181 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
201 struct xfs_mount *mp = ip->i_mount; in xfs_eof_alignment()
273 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_write_direct()
372 if (!dq || !xfs_this_quota_on(ip->i_mount, type)) in xfs_quota_need_throttle()
485 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_prealloc_size()
616 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten()
[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()
336 mp = dp->i_mount; in xfs_attr_inactive()
/linux/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()
77 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leafn_check()
90 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check()
330 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_get_buf()
446 xfs_dir2_free_hdr_from_disk(dp->i_mount, &freehdr, fbp->b_addr); in xfs_dir2_leaf_to_node()
474 xfs_dir2_free_hdr_to_disk(dp->i_mount, fbp->b_addr, &freehdr); in xfs_dir2_leaf_to_node()
518 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_add()
576 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf, &leafhdr); in xfs_dir2_leafn_add()
592 xfs_dir2_free_hdr_from_disk(dp->i_mount, &hdr, bp->b_addr); in xfs_dir2_free_hdr_check()
594 ASSERT((hdr.firstdb % dp->i_mount->m_dir_geo->free_max_bests) == 0); in xfs_dir2_free_hdr_check()
[all …]
H A Dxfs_metafile.c65 XFS_STATS_DEC(ip->i_mount, xs_inodes_active); in xfs_metafile_set_iflag()
66 XFS_STATS_INC(ip->i_mount, xs_inodes_meta); in xfs_metafile_set_iflag()
80 XFS_STATS_INC(ip->i_mount, xs_inodes_active); in xfs_metafile_clear_iflag()
81 XFS_STATS_DEC(ip->i_mount, xs_inodes_meta); in xfs_metafile_clear_iflag()
138 struct xfs_mount *mp = ip->i_mount; in xfs_metafile_resv_alloc_space()
173 error = xfs_dec_fdblocks(ip->i_mount, len, true); in xfs_metafile_resv_alloc_space()
196 struct xfs_mount *mp = ip->i_mount; in xfs_metafile_resv_free_space()
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()
763 xfs_da3_node_hdr_from_disk(dp->i_mount, &icnodehdr, oldroot); in xfs_da3_root_split()
771 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split()
802 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
809 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
851 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
898 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
[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.c108 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leaf1_check()
117 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leaf1_check()
130 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check()
362 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()
486 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_block_to_leaf()
489 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf, &leafhdr); in xfs_dir2_block_to_leaf()
521 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_to_leaf()
714 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leaf_addname()
717 length = xfs_dir2_data_entsize(dp->i_mount, args->namelen); in xfs_dir2_leaf_addname()
[all …]
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()
341 XFS_STATS_INC(dp->i_mount, xs_dir_create); in xfs_dir_createname()
348 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
352 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_createname()
438 XFS_STATS_INC(dp->i_mount, xs_dir_lookup); in xfs_dir_lookup()
441 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
445 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_lookup()
503 XFS_STATS_INC(dp->i_mount, xs_dir_remove); in xfs_dir_removename()
509 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_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_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()
350 xfs_dir2_data_freescan(args->dp->i_mount, hdr, needlog); in xfs_dir2_block_compact()
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()
580 xfs_dir2_data_put_ftype(dp->i_mount, dep, args->filetype); 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()
672 args->filetype = xfs_dir2_data_get_ftype(dp->i_mount, dep); in xfs_dir2_block_lookup()
[all …]
H A Dxfs_parent.c159 args->geo = child->i_mount->m_attr_geo; in xfs_parent_da_args_init()
180 if (XFS_IS_CORRUPT(child->i_mount, !xfs_inode_has_attr_fork(child))) { in xfs_parent_iread_extents()
350 if (!xfs_parent_sanity_check(ip->i_mount, parent_name, pptr)) { in xfs_parent_set()
373 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()
388 incr_isize = xfs_dir2_sf_entsize(dp->i_mount, sfp, args->namelen); in xfs_dir2_sf_addname()
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()
[all …]
/linux/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