Home
last modified time | relevance | path

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

123

/fs/xfs/libxfs/
Dxfs_dir2.c243 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
273 XFS_STATS_INC(dp->i_mount, xs_dir_create); in xfs_dir_createname()
280 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
284 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_createname()
365 XFS_STATS_INC(dp->i_mount, xs_dir_lookup); in xfs_dir_lookup()
376 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
380 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_lookup()
442 XFS_STATS_INC(dp->i_mount, xs_dir_remove); in xfs_dir_removename()
448 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
452 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_removename()
[all …]
Dxfs_dir2_node.c67 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leafn_check()
76 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leafn_check()
89 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check()
181 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_header_check()
324 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_get_buf()
440 xfs_dir2_free_hdr_from_disk(dp->i_mount, &freehdr, fbp->b_addr); in xfs_dir2_leaf_to_node()
467 xfs_dir2_free_hdr_to_disk(dp->i_mount, fbp->b_addr, &freehdr); in xfs_dir2_leaf_to_node()
511 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_add()
568 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf, &leafhdr); in xfs_dir2_leafn_add()
584 xfs_dir2_free_hdr_from_disk(dp->i_mount, &hdr, bp->b_addr); in xfs_dir2_free_hdr_check()
[all …]
Dxfs_inode_fork.c79 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
80 xfs_warn(ip->i_mount, in xfs_iformat_local()
83 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
104 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_extents()
119 xfs_warn(ip->i_mount, "corrupt inode %llu ((a)extents = %llu).", in xfs_iformat_extents()
169 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_btree()
211 xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork), in xfs_iformat_btree()
376 struct xfs_mount *mp = ip->i_mount; in xfs_iroot_realloc()
446 XFS_BMBT_BLOCK_LEN(ip->i_mount)); in xfs_iroot_realloc()
623 mp = ip->i_mount; in xfs_iflush_fork()
[all …]
Dxfs_da_btree.c90 state->mp = args->dp->i_mount; in xfs_da_state_alloc()
128 state->mp = state->args->dp->i_mount; in xfs_da_state_reset()
405 struct xfs_mount *mp = dp->i_mount; in xfs_da3_node_read_mapped()
470 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &ichdr); in xfs_da3_node_create()
689 xfs_da3_node_hdr_from_disk(dp->i_mount, &icnodehdr, oldroot); in xfs_da3_root_split()
703 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split()
748 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
755 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
797 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
844 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
[all …]
Dxfs_dir2_leaf.c107 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leaf1_check()
116 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leaf1_check()
129 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check()
358 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_leaf_get_buf()
430 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_block_to_leaf()
435 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_block_to_leaf()
438 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf, &leafhdr); in xfs_dir2_block_to_leaf()
470 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_to_leaf()
662 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leaf_addname()
665 length = xfs_dir2_data_entsize(dp->i_mount, args->namelen); in xfs_dir2_leaf_addname()
[all …]
Dxfs_dir2_block.c122 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_header_check()
140 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
204 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_block_need_space()
343 xfs_dir2_data_freescan(args->dp->i_mount, hdr, needlog); in xfs_dir2_block_compact()
387 len = xfs_dir2_data_entsize(dp->i_mount, args->namelen); in xfs_dir2_block_addname()
490 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_addname()
573 xfs_dir2_data_put_ftype(dp->i_mount, dep, args->filetype); in xfs_dir2_block_addname()
574 tagp = xfs_dir2_data_entry_tag_p(dp->i_mount, dep); in xfs_dir2_block_addname()
580 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_addname()
665 args->filetype = xfs_dir2_data_get_ftype(dp->i_mount, dep); in xfs_dir2_block_lookup()
[all …]
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()
390 incr_isize = xfs_dir2_sf_entsize(dp->i_mount, sfp, args->namelen); in xfs_dir2_sf_addname()
464 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_addname_easy()
515 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_addname_hard()
608 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_addname_pick()
675 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_check()
712 struct xfs_mount *mp = ip->i_mount; in xfs_dir2_sf_verify()
866 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_lookup()
942 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_removename()
[all …]
Dxfs_bmap.c179 mp = ip->i_mount; in xfs_bmap_worst_indlen()
205 return M_IGEO(ip->i_mount)->attr_fork_offset; in xfs_default_attroffset()
321 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_check_leaf_extents()
542 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_btree_to_extents()
622 mp = ip->i_mount; in xfs_bmap_extents_to_btree()
795 args.mp = ip->i_mount; in xfs_bmap_local_to_extents()
870 mp = ip->i_mount; in xfs_bmap_add_attrfork_btree()
948 dargs.geo = ip->i_mount->m_dir_geo; in xfs_bmap_add_attrfork_local()
987 else if (xfs_has_attr2(ip->i_mount) && version) in xfs_bmap_set_attrforkoff()
1017 mp = ip->i_mount; in xfs_bmap_add_attrfork()
[all …]
/fs/xfs/
Dxfs_dir2_readdir.c51 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_getdents()
120 if (XFS_IS_CORRUPT(dp->i_mount, in xfs_dir2_sf_getdents()
197 xfs_dir2_data_entsize(dp->i_mount, dep->namelen); in xfs_dir2_block_getdents()
208 filetype = xfs_dir2_data_get_ftype(dp->i_mount, dep); in xfs_dir2_block_getdents()
212 if (XFS_IS_CORRUPT(dp->i_mount, in xfs_dir2_block_getdents()
220 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_block_getdents()
352 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_leaf_getdents()
466 if (XFS_IS_CORRUPT(dp->i_mount, in xfs_dir2_leaf_getdents()
474 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_leaf_getdents()
520 if (xfs_is_shutdown(dp->i_mount)) in xfs_readdir()
[all …]
Dxfs_bmap_util.c43 return XFS_FSB_TO_BB(ip->i_mount, fsb); in xfs_fsb_to_db()
44 return XFS_FSB_TO_DADDR(ip->i_mount, fsb); in xfs_fsb_to_db()
60 struct xfs_mount *mp = ip->i_mount; in xfs_zero_extent()
76 struct xfs_mount *mp = ap->ip->i_mount; in xfs_bmap_rtalloc()
258 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_count_blocks()
338 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one()
339 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one()
362 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole()
363 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole()
408 struct xfs_mount *mp = ip->i_mount; in xfs_getbmap()
[all …]
Dxfs_attr_inactive.c56 if (XFS_IS_CORRUPT(dp->i_mount, nmap != 1)) in xfs_attr3_rmt_stale()
112 blkcnt = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
136 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_node_inactive()
153 xfs_da3_node_hdr_from_disk(dp->i_mount, &ichdr, bp->b_addr); in xfs_attr3_node_inactive()
229 xfs_da3_node_hdr_from_disk(dp->i_mount, &phdr, in xfs_attr3_node_inactive()
257 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_root_inactive()
335 mp = dp->i_mount; in xfs_attr_inactive()
Dxfs_attr_list.c84 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
126 context->dp->i_mount, sfe, in xfs_attr_shortform_list()
176 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
210 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list_lookup()
292 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list()
397 struct xfs_mount *mp = context->dp->i_mount; in xfs_attr3_leaf_list_int()
467 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr3_leaf_list_int()
530 XFS_STATS_INC(dp->i_mount, xs_attr_list); in xfs_attr_list()
532 if (xfs_is_shutdown(dp->i_mount)) in xfs_attr_list()
Dxfs_reflink.c173 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_trim_around_shared()
289 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_convert_cow()
388 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_fill_cow_hole()
456 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_fill_delalloc()
674 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_cancel_cow_range()
678 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_cancel_cow_range()
681 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write, in xfs_reflink_cancel_cow_range()
726 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_end_cow_extent()
871 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_end_cow()
872 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_end_cow()
[all …]
Dxfs_file.c47 struct xfs_mount *mp = ip->i_mount; in xfs_is_falloc_aligned()
126 error = xfs_log_force_seq(ip->i_mount, seq, XFS_LOG_SYNC, in xfs_fsync_flush_log()
145 struct xfs_mount *mp = ip->i_mount; in xfs_file_fsync()
326 struct xfs_mount *mp = XFS_I(inode)->i_mount; in xfs_file_read_iter()
356 struct xfs_mount *mp = ip->i_mount; in xfs_file_splice_read()
502 if (xfs_is_shutdown(ip->i_mount)) in xfs_dio_write_end_io()
514 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, size); in xfs_dio_write_end_io()
718 if ((iocb->ki_pos | count) & ip->i_mount->m_blockmask) in xfs_file_dio_write()
756 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, ret); in xfs_file_dax_write()
808 xfs_flush_inodes(ip->i_mount); in xfs_file_buffered_write()
[all …]
Dxfs_icache.c99 ip->i_mount = mp; in xfs_inode_alloc()
159 XFS_STATS_DEC(ip->i_mount, vn_active); in __xfs_inode_free()
339 struct xfs_mount *mp = ip->i_mount; in xfs_iget_recycle()
415 xfs_warn(ip->i_mount, in xfs_iget_check_free_state()
422 xfs_warn(ip->i_mount, in xfs_iget_check_free_state()
490 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit()
880 if (xlog_is_shutdown(ip->i_mount->m_log)) { in xfs_reclaim_inode()
914 XFS_STATS_INC(ip->i_mount, xs_ig_reclaims); in xfs_reclaim_inode()
924 XFS_INO_TO_AGINO(ip->i_mount, ino))) in xfs_reclaim_inode()
1166 struct xfs_mount *mp = ip->i_mount; in xfs_blockgc_set_iflag()
[all …]
Dxfs_inode.h26 struct xfs_mount *i_mount; /* fs mount struct ptr */ member
137 return XFS_LITINO(ip->i_mount); in xfs_inode_data_fork_size()
143 return XFS_LITINO(ip->i_mount) - xfs_inode_fork_boff(ip); in xfs_inode_attr_fork_size()
283 struct xfs_mount *mp = ip->i_mount; in xfs_is_metadata_inode()
313 (ip)->i_mount->m_rtdev_targp : (ip)->i_mount->m_ddev_targp)
499 (xfs_has_grpid((pip)->i_mount) || (VFS_I(pip)->i_mode & S_ISGID))
Dxfs_iomap.c39 xfs_alert_tag(ip->i_mount, XFS_PTAG_FSBLOCK_ZERO, in xfs_alert_fsblock_zero()
82 XFS_ERRORTAG_DELAY(ip->i_mount, XFS_ERRTAG_WRITE_DELAY_MS); in xfs_iomap_valid()
99 struct xfs_mount *mp = ip->i_mount; in xfs_bmbt_to_iomap()
151 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
152 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
172 struct xfs_mount *mp = ip->i_mount; in xfs_eof_alignment()
244 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_write_direct()
349 if (!dq || !xfs_this_quota_on(ip->i_mount, type)) in xfs_quota_need_throttle()
417 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_prealloc_size()
553 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten()
[all …]
Dxfs_ioctl.c98 memcpy(&handle.ha_fsid, ip->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_find_handle()
664 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_fsbulkstat()
843 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_bulkstat()
993 struct xfs_mount *mp = ip->i_mount; in xfs_fill_fsxattr()
1122 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags()
1171 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_prepare_dax()
1198 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans()
1231 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize()
1262 failaddr = xfs_inode_validate_extsize(ip->i_mount, in xfs_ioctl_setattr_check_extsize()
1273 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize()
[all …]
Dxfs_pnfs.c89 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_writeid, in xfs_fs_map_update_inode()
120 struct xfs_mount *mp = ip->i_mount; in xfs_fs_map_blocks()
235 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize()
266 struct xfs_mount *mp = ip->i_mount; in xfs_fs_commit_blocks()
Dxfs_symlink.c33 struct xfs_mount *mp = ip->i_mount; in xfs_readlink_bmap_ilocked()
103 struct xfs_mount *mp = ip->i_mount; in xfs_readlink()
131 if (XFS_IS_CORRUPT(ip->i_mount, !ip->i_df.if_u1.if_data)) in xfs_readlink()
154 struct xfs_mount *mp = dp->i_mount; in xfs_symlink()
387 mp = ip->i_mount; in xfs_inactive_symlink_rmt()
479 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_symlink()
Dxfs_inode.c69 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint()
662 if (xfs_is_shutdown(dp->i_mount)) in xfs_lookup()
669 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup()
704 xfs_has_realtime(ip->i_mount)) in xfs_inode_inherit_flags()
741 failaddr = xfs_inode_validate_extsize(ip->i_mount, ip->i_extsize, in xfs_inode_inherit_flags()
766 failaddr = xfs_inode_validate_cowextsize(ip->i_mount, ip->i_cowextsize, in xfs_inode_inherit_flags2()
922 xfs_alert(ip->i_mount, in xfs_droplink()
964 struct xfs_mount *mp = dp->i_mount; in xfs_create()
1116 struct xfs_mount *mp = dp->i_mount; in xfs_create_tmpfile()
1209 xfs_mount_t *mp = tdp->i_mount; in xfs_link()
[all …]
Dxfs_aops.c53 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize()
87 struct xfs_mount *mp = ip->i_mount; in xfs_end_ioend()
188 WARN_ON_ONCE(!queue_work(ip->i_mount->m_unwritten_workqueue, in xfs_end_bio()
282 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks()
470 struct xfs_mount *mp = ip->i_mount; in xfs_discard_folio()
Dxfs_iops.c517 struct xfs_mount *mp = ip->i_mount; in xfs_stat_blksize()
559 struct xfs_mount *mp = ip->i_mount; in xfs_vn_getattr()
638 struct xfs_mount *mp = XFS_I(d_inode(dentry))->i_mount; in xfs_vn_change_ok()
662 xfs_mount_t *mp = ip->i_mount; in xfs_setattr_nonsize()
791 struct xfs_mount *mp = ip->i_mount; in xfs_setattr_size()
1040 struct xfs_mount *mp = ip->i_mount; in xfs_vn_update_time()
1193 struct xfs_mount *mp = ip->i_mount; in xfs_inode_supports_dax()
1213 if (xfs_has_dax_never(ip->i_mount)) in xfs_inode_should_enable_dax()
1217 if (xfs_has_dax_always(ip->i_mount)) in xfs_inode_should_enable_dax()
Dxfs_reflink.h11 return ip->i_mount->m_always_cow && xfs_has_reflink(ip->i_mount); in xfs_is_always_cow_inode()
/fs/xfs/scrub/
Dreaddir.c36 struct xfs_mount *mp = dp->i_mount; in xchk_dir_walk_sf()
98 struct xfs_mount *mp = dp->i_mount; in xchk_dir_walk_block()
191 struct xfs_mount *mp = dp->i_mount; in xchk_dir_walk_leaf()
276 .geo = dp->i_mount->m_dir_geo, in xchk_dir_walk()
282 if (xfs_is_shutdown(dp->i_mount)) in xchk_dir_walk()
321 .geo = dp->i_mount->m_dir_geo, in xchk_dir_lookup()
326 .hashval = xfs_dir2_hashname(dp->i_mount, name), in xchk_dir_lookup()
333 if (xfs_is_shutdown(dp->i_mount)) in xchk_dir_lookup()

123