/linux/fs/xfs/ |
H A D | xfs_bmap_util.c | 45 return xfs_rtb_to_daddr(ip->i_mount, fsb); in xfs_fsb_to_db() 46 return XFS_FSB_TO_DADDR(ip->i_mount, fsb); in xfs_fsb_to_db() 60 XFS_FSB_TO_BB(ip->i_mount, count_fsb), in xfs_zero_extent() 103 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_count_blocks() 183 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one() 184 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one() 207 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole() 208 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole() 253 struct xfs_mount *mp = ip->i_mount; in xfs_getbmap() 441 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_punch_delalloc_range() [all …]
|
H A D | xfs_attr_inactive.c | 57 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 D | xfs_inode.h | 27 struct xfs_mount *i_mount; /* fs mount struct ptr */ member 149 return XFS_LITINO(ip->i_mount); in xfs_inode_data_fork_size() 155 return XFS_LITINO(ip->i_mount) - xfs_inode_fork_boff(ip); in xfs_inode_attr_fork_size() 297 struct xfs_mount *mp = ip->i_mount; in xfs_is_internal_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 D | xfs_attr_list.c | 84 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 D | xfs_file.c | 113 error = 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() 302 struct xfs_mount *mp = XFS_I(inode)->i_mount; in xfs_file_read_iter() 332 struct xfs_mount *mp = ip->i_mount; in xfs_file_splice_read() 508 if (xfs_is_shutdown(ip->i_mount)) in xfs_dio_write_end_io() 520 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, size); in xfs_dio_write_end_io() 724 if ((iocb->ki_pos | count) & ip->i_mount->m_blockmask) in xfs_file_dio_write() 762 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, ret); in xfs_file_dax_write() 814 xfs_flush_inodes(ip->i_mount); in xfs_file_buffered_write() 818 xfs_blockgc_free_space(ip->i_mount, &icw); in xfs_file_buffered_write() [all …]
|
H A D | xfs_icache.c | 115 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() 443 XFS_INO_TO_AGNO(ip->i_mount, ip->i_ino), 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() 453 XFS_INO_TO_AGNO(ip->i_mount, ip->i_ino), in xfs_iget_check_free_state() 520 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit() [all …]
|
H A D | xfs_reflink.c | 233 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() 796 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_end_cow_extent() 932 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_end_cow() 933 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_end_cow() [all …]
|
H A D | xfs_ioctl.c | 81 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_fsbulkstat() 264 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_bulkstat() 449 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() 678 failaddr = xfs_inode_validate_extsize(ip->i_mount, in xfs_ioctl_setattr_check_extsize() 689 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize() 703 failaddr = xfs_inode_validate_cowextsize(ip->i_mount, in xfs_ioctl_setattr_check_cowextsize() [all …]
|
H A D | xfs_symlink.c | 36 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 D | xfs_aops.c | 54 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize() 88 struct xfs_mount *mp = ip->i_mount; in xfs_end_ioend() 189 WARN_ON_ONCE(!queue_work(ip->i_mount->m_unwritten_workqueue, in xfs_end_bio() 245 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks() 446 struct xfs_mount *mp = ip->i_mount; in xfs_discard_folio() 562 xfs_inodegc_flush(ip->i_mount); in xfs_vm_swap_activate()
|
H A D | xfs_inode_item.c | 45 struct xfs_mount *mp = ip->i_mount; in xfs_inode_item_precommit_check() 127 xfs_has_bigtime(ip->i_mount) && in xfs_inode_item_precommit() 141 xfs_extlen_to_rtxmod(ip->i_mount, ip->i_extsize) > 0) { in xfs_inode_item_precommit() 168 xfs_extlen_to_rtxmod(ip->i_mount, ip->i_cowextsize) > 0) { in xfs_inode_item_precommit() 188 error = xfs_imap_to_bp(ip->i_mount, tp, &ip->i_imap, &bp); in xfs_inode_item_precommit() 338 xfs_log_dinode_size(ip->i_mount); in xfs_inode_item_size() 594 if (xfs_has_v3inodes(ip->i_mount)) { in xfs_inode_to_log_dinode() 603 uuid_copy(&to->di_uuid, &ip->i_mount->m_sb.sb_meta_uuid); in xfs_inode_to_log_dinode() 638 xlog_finish_iovec(lv, *vecp, xfs_log_dinode_size(ip->i_mount)); in xfs_inode_item_format_core()
|
H A D | xfs_iops.c | 543 struct xfs_mount *mp = ip->i_mount; in xfs_stat_blksize() 611 unit_min = unit_max = ip->i_mount->m_sb.sb_blocksize; in xfs_report_atomic_write() 625 struct xfs_mount *mp = ip->i_mount; in xfs_vn_getattr() 696 struct xfs_mount *mp = XFS_I(d_inode(dentry))->i_mount; in xfs_vn_change_ok() 720 xfs_mount_t *mp = ip->i_mount; in xfs_setattr_nonsize() 849 struct xfs_mount *mp = ip->i_mount; in xfs_setattr_size() 1098 struct xfs_mount *mp = ip->i_mount; in xfs_vn_update_time() 1251 struct xfs_mount *mp = ip->i_mount; in xfs_inode_supports_dax() 1271 if (xfs_has_dax_never(ip->i_mount)) in xfs_inode_should_enable_dax() 1275 if (xfs_has_dax_always(ip->i_mount)) in xfs_inode_should_enable_dax()
|
H A D | xfs_handle.c | 122 memcpy(&handle.ha_fsid, ip->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_find_handle() 125 hsize = xfs_fshandle_init(ip->i_mount, &handle); in xfs_find_handle() 127 hsize = xfs_filehandle_init(ip->i_mount, ip->i_ino, in xfs_find_handle() 186 struct xfs_mount *mp = ip->i_mount; in xfs_khandle_to_inode() 714 struct xfs_mount *mp = ip->i_mount; in xfs_getparents_put_listent() 780 struct xfs_mount *mp = ip->i_mount; in xfs_getparents() 877 struct xfs_mount *mp = gpx.ip->i_mount; in xfs_ioc_getparents() 905 struct xfs_mount *mp = ip->i_mount; in xfs_ioc_getparents_by_handle()
|
H A D | xfs_qm_bhv.c | 28 if (XFS_IS_REALTIME_MOUNT(ip->i_mount) && in xfs_fill_statvfs_from_dquot() 72 struct xfs_mount *mp = ip->i_mount; in xfs_qm_statvfs()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_metafile.c | 98 return __percpu_counter_compare(&ip->i_mount->m_fdblocks, in xfs_metafile_resv_can_cover() 119 if (!xfs_metafile_resv_can_cover(ip, ip->i_mount->m_rtbtree_maxlevels)) in xfs_metafile_resv_critical() 126 return XFS_TEST_ERROR(false, ip->i_mount, in xfs_metafile_resv_critical() 169 error = xfs_dec_fdblocks(ip->i_mount, len, true); in xfs_metafile_resv_alloc_space() 232 xfs_add_fdblocks(ip->i_mount, ip->i_delayed_blks); in xfs_metafile_resv_free() 263 error = xfs_dec_fdblocks(ip->i_mount, hidden_space, true); in xfs_metafile_resv_init()
|
H A D | xfs_da_btree.c | 92 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 D | xfs_metadir.c | 88 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 D | xfs_dir2.c | 255 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() 442 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup() 446 args->hashval = xfs_dir2_hashname(dp->i_mount, name); 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() [all …]
|
H A D | xfs_inode_fork.c | 87 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 D | xfs_dir2_sf.c | 188 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 …]
|
H A D | xfs_rtrefcount_btree.c | 591 struct xfs_mount *mp = ip->i_mount; in xfs_rtrefcountbt_from_disk() 633 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_rtrefcount() 645 if (!xfs_has_reflink(ip->i_mount)) { in xfs_iformat_rtrefcount() 726 xfs_rtrefcountbt_to_disk(ip->i_mount, ifp->if_broot, in xfs_iflush_rtrefcount() 728 XFS_DFORK_SIZE(dip, ip->i_mount, XFS_DATA_FORK)); in xfs_iflush_rtrefcount() 742 struct xfs_mount *mp = ip->i_mount; in xfs_rtrefcountbt_create()
|
H A D | xfs_bmap.c | 184 mp = ip->i_mount; in xfs_bmap_worst_indlen() 210 return M_IGEO(ip->i_mount)->attr_fork_offset; in xfs_default_attroffset() 348 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_check_leaf_extents() 570 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_btree_to_extents() 653 mp = ip->i_mount; in xfs_bmap_extents_to_btree() 822 args.mp = ip->i_mount; in xfs_bmap_local_to_extents() 897 mp = ip->i_mount; in xfs_bmap_add_attrfork_btree() 976 dargs.geo = ip->i_mount->m_dir_geo; in xfs_bmap_add_attrfork_local() 1017 else if (xfs_has_attr2(ip->i_mount) && version) in xfs_bmap_set_attrforkoff() 1111 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_complain_bad_rec() [all …]
|
H A D | xfs_attr.c | 274 XFS_STATS_INC(args->dp->i_mount, xs_attr_get); in xfs_attr_get() 276 if (xfs_is_shutdown(args->dp->i_mount)) in xfs_attr_get() 281 args->geo = args->dp->i_mount->m_attr_geo; in xfs_attr_get() 303 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_calc_size() 336 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_set_resv() 377 if (xfs_has_wsync(dp->i_mount)) in xfs_attr_try_sf_addname() 1002 struct xfs_mount *mp = ip->i_mount; in xfs_attr_add_fork() 1051 struct xfs_mount *mp = dp->i_mount; in xfs_attr_set()
|
H A D | xfs_bmap_btree.c | 38 xfs_btree_init_buf(ip->i_mount, bp, &xfs_bmbt_ops, level, in xfs_bmbt_init_block() 41 xfs_btree_init_block(ip->i_mount, buf, &xfs_bmbt_ops, level, in xfs_bmbt_init_block() 56 struct xfs_mount *mp = ip->i_mount; in xfs_bmdr_to_bmbt() 558 struct xfs_mount *mp = ip->i_mount; in xfs_bmap_broot_realloc() 838 cur = xfs_bmbt_init_cursor(ip->i_mount, tp, ip, whichfork); in xfs_bmbt_change_owner()
|
/linux/fs/xfs/scrub/ |
H A D | trace.h | 164 __entry->dev = ip->i_mount->m_super->s_dev; 238 __entry->dev = ip->i_mount->m_super->s_dev; 342 __entry->dev = sc->ip->i_mount->m_super->s_dev; 440 __entry->dev = sc->ip->i_mount->m_super->s_dev; 482 __entry->dev = cursor->sc->ip->i_mount->m_super->s_dev; 1648 __entry->dev = ip->i_mount->m_super->s_dev; 2623 __entry->dev = ip->i_mount->m_super->s_dev; 2652 __entry->dev = ip->i_mount->m_super->s_dev; 2911 __entry->dev = ip->i_mount->m_super->s_dev; 2936 __entry->dev = ip->i_mount->m_super->s_dev; [all …]
|