/Linux-v4.19/fs/xfs/ |
D | xfs_icache.c | 63 ip->i_mount = mp; in xfs_inode_alloc() 113 XFS_STATS_DEC(ip->i_mount, vn_active); in __xfs_inode_free() 226 struct xfs_mount *mp = ip->i_mount; in xfs_inode_set_reclaim_tag() 318 xfs_warn(ip->i_mount, in xfs_iget_check_free_state() 325 xfs_warn(ip->i_mount, in xfs_iget_check_free_state() 352 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit() 761 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_inode_ag_walk_grab() 1109 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_reclaim_inode() 1181 XFS_STATS_INC(ip->i_mount, xs_ig_reclaims); in xfs_reclaim_inode() 1191 XFS_INO_TO_AGINO(ip->i_mount, ino))) in xfs_reclaim_inode() [all …]
|
D | xfs_reflink.c | 203 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 204 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 207 error = xfs_reflink_find_shared(ip->i_mount, NULL, agno, agbno, in xfs_reflink_trim_around_shared() 338 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_convert_cow() 404 struct xfs_mount *mp = ip->i_mount; in xfs_reflink_allocate_cow() 593 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_cancel_cow_range() 597 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_cancel_cow_range() 600 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write, in xfs_reflink_cancel_cow_range() 652 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_end_cow() 653 end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count); in xfs_reflink_end_cow() [all …]
|
D | xfs_file.c | 47 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_writeid, in xfs_update_prealloc_flags() 87 struct xfs_mount *mp = ip->i_mount; in xfs_dir_fsync() 111 struct xfs_mount *mp = ip->i_mount; in xfs_file_fsync() 257 struct xfs_mount *mp = XFS_I(inode)->i_mount; in xfs_file_read_iter() 399 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_dio_write_end_io() 409 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, size); in xfs_dio_write_end_io() 483 struct xfs_mount *mp = ip->i_mount; in xfs_file_dio_aio_write() 600 XFS_STATS_ADD(ip->i_mount, xs_write_bytes, ret); in xfs_file_dax_write() 662 xfs_flush_inodes(ip->i_mount); in xfs_file_buffered_aio_write() 666 xfs_icache_free_eofblocks(ip->i_mount, &eofb); in xfs_file_buffered_aio_write() [all …]
|
D | xfs_bmap_util.c | 48 (xfs_daddr_t)XFS_FSB_TO_BB((ip)->i_mount, (fsb)) : \ in xfs_fsb_to_db() 49 XFS_FSB_TO_DADDR((ip)->i_mount, (fsb))); in xfs_fsb_to_db() 65 struct xfs_mount *mp = ip->i_mount; in xfs_zero_extent() 88 mp = ap->ip->i_mount; in xfs_bmap_rtalloc() 357 mp = ip->i_mount; in xfs_bmap_count_blocks() 426 if (got->br_startoff < XFS_B_TO_FSB(ip->i_mount, XFS_ISIZE(ip))) in xfs_getbmap_report_one() 442 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one() 443 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one() 466 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole() 467 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole() [all …]
|
D | xfs_acl.c | 139 len = XFS_ACL_MAX_SIZE(ip->i_mount); in xfs_get_acl() 155 XFS_ACL_MAX_ENTRIES(ip->i_mount)); in xfs_get_acl() 183 int len = XFS_ACL_MAX_SIZE(ip->i_mount); in __xfs_set_acl() 193 (XFS_ACL_MAX_ENTRIES(ip->i_mount) - acl->a_count); in __xfs_set_acl()
|
D | xfs_attr_inactive.c | 76 dblkno = XFS_FSB_TO_DADDR(dp->i_mount, in xfs_attr3_leaf_freextent() 78 dblkcnt = XFS_FSB_TO_BB(dp->i_mount, in xfs_attr3_leaf_freextent() 81 dp->i_mount->m_ddev_targp, in xfs_attr3_leaf_freextent() 168 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive() 388 mp = dp->i_mount; in xfs_attr_inactive()
|
D | xfs_iomap.c | 44 struct xfs_mount *mp = ip->i_mount; in xfs_bmbt_to_iomap() 70 struct xfs_mount *mp = ip->i_mount; in xfs_eof_alignment() 131 xfs_alert_tag(ip->i_mount, XFS_PTAG_FSBLOCK_ZERO, in xfs_alert_fsblock_zero() 151 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_direct() 298 if (!dq || !xfs_this_quota_on(ip->i_mount, type)) in xfs_quota_need_throttle() 375 struct xfs_mount *mp = ip->i_mount; in xfs_iomap_prealloc_size() 508 struct xfs_mount *mp = ip->i_mount; in xfs_file_iomap_begin_delay() 657 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_allocate() 812 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten() 1002 struct xfs_mount *mp = ip->i_mount; in xfs_file_iomap_begin() [all …]
|
D | xfs_aops.c | 41 struct xfs_mount *mp = ip->i_mount; in xfs_find_bdev_for_inode() 54 struct xfs_mount *mp = ip->i_mount; in xfs_find_daxdev_for_inode() 118 xfs_err_ratelimited(XFS_I(inode)->i_mount, in xfs_destroy_ioend() 136 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_setfilesize_trans_alloc() 195 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize() 248 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_end_io() 294 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_end_bio() 311 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks() 600 struct xfs_mount *mp = ip->i_mount; in xfs_add_to_ioend() 656 struct xfs_mount *mp = ip->i_mount; in xfs_aops_discard_page()
|
D | xfs_dir2_readdir.c | 122 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_sf_getdents() 216 xfs_dir3_get_dtype(dp->i_mount, filetype))) { in xfs_dir2_block_getdents() 464 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_leaf_getdents() 509 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_readdir() 513 XFS_STATS_INC(dp->i_mount, xs_dir_getdents); in xfs_readdir() 516 args.geo = dp->i_mount->m_dir_geo; in xfs_readdir()
|
D | xfs_ioctl.c | 98 memcpy(&handle.ha_fsid, ip->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_find_handle() 305 xfs_mount_t *mp = ip->i_mount; in xfs_set_dmattrs() 611 if (!xfs_sb_version_hasextflgbit(&ip->i_mount->m_sb) && in xfs_ioc_space() 894 fa.fsx_extsize = ip->i_d.di_extsize << ip->i_mount->m_sb.sb_blocklog; in xfs_ioc_fsgetxattr() 896 ip->i_mount->m_sb.sb_blocklog; in xfs_ioc_fsgetxattr() 1015 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags() 1141 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans() 1204 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize() 1262 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_cowextsize() 1267 if (!xfs_sb_version_hasreflink(&ip->i_mount->m_sb) || in xfs_ioctl_setattr_check_cowextsize() [all …]
|
D | xfs_filestream.c | 139 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_pick_ag() 309 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_lookup_ag() 360 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_new_ag() 404 xfs_mru_cache_delete(ip->i_mount->m_filestream, ip->i_ino); in xfs_filestream_deassociate()
|
D | xfs_symlink.c | 39 struct xfs_mount *mp = ip->i_mount; in xfs_readlink_bmap_ilocked() 119 struct xfs_mount *mp = ip->i_mount; in xfs_readlink() 161 struct xfs_mount *mp = dp->i_mount; in xfs_symlink() 396 mp = ip->i_mount; in xfs_inactive_symlink_rmt() 488 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_symlink()
|
D | xfs_attr_list.c | 130 context->dp->i_mount, sfe, in xfs_attr_shortform_list() 210 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list_lookup() 291 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list() 394 struct xfs_mount *mp = context->dp->i_mount; in xfs_attr3_leaf_list_int() 524 XFS_STATS_INC(dp->i_mount, xs_attr_list); in xfs_attr_list_int() 526 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_list_int()
|
D | xfs_pnfs.c | 93 struct xfs_mount *mp = ip->i_mount; in xfs_fs_map_blocks() 209 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize() 240 struct xfs_mount *mp = ip->i_mount; in xfs_fs_commit_blocks()
|
D | xfs_qm.c | 298 struct xfs_mount *mp = ip->i_mount; in xfs_qm_need_dqattach() 323 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked() 394 ASSERT(!xfs_is_quota_inode(&ip->i_mount->m_sb, ip->i_ino)); in xfs_qm_dqdetach() 1066 struct xfs_mount *mp = ip->i_mount; in xfs_qm_quotacheck_dqadjust() 1645 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_dqalloc() 1779 ASSERT(XFS_IS_QUOTA_RUNNING(ip->i_mount)); in xfs_qm_vop_chown() 1814 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_chown_reserve() 1845 if (XFS_IS_GQUOTA_ON(ip->i_mount) && gdqp && in xfs_qm_vop_chown_reserve() 1854 if (XFS_IS_PQUOTA_ON(ip->i_mount) && pdqp && in xfs_qm_vop_chown_reserve() 1864 error = xfs_trans_reserve_quota_bydquots(tp, ip->i_mount, in xfs_qm_vop_chown_reserve() [all …]
|
D | xfs_inode.c | 67 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint() 696 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_lookup() 703 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup() 1141 struct xfs_mount *mp = dp->i_mount; in xfs_create() 1297 struct xfs_mount *mp = dp->i_mount; in xfs_create_tmpfile() 1390 xfs_mount_t *mp = tdp->i_mount; in xfs_link() 1524 struct xfs_mount *mp = ip->i_mount; in xfs_itruncate_extents_flags() 1608 xfs_mount_t *mp = ip->i_mount; in xfs_release() 1693 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_truncate() 1742 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_ifree() [all …]
|
D | xfs_filestream.h | 24 return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) || in xfs_inode_is_filestream()
|
D | xfs_iops.c | 497 struct xfs_mount *mp = ip->i_mount; in xfs_vn_getattr() 592 struct xfs_mount *mp = XFS_I(d_inode(dentry))->i_mount; in xfs_vn_change_ok() 615 xfs_mount_t *mp = ip->i_mount; in xfs_setattr_nonsize() 822 struct xfs_mount *mp = ip->i_mount; in xfs_setattr_size() 1060 struct xfs_mount *mp = ip->i_mount; in xfs_vn_update_time() 1206 struct xfs_mount *mp = ip->i_mount; in xfs_inode_supports_dax() 1285 ip->d_ops = ip->i_mount->m_dir_inode_ops; in xfs_setup_inode() 1287 ip->d_ops = ip->i_mount->m_nondir_inode_ops; in xfs_setup_inode()
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_dir2.c | 228 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init() 258 XFS_STATS_INC(dp->i_mount, xs_dir_create); in xfs_dir_createname() 265 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname() 269 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_createname() 350 XFS_STATS_INC(dp->i_mount, xs_dir_lookup); in xfs_dir_lookup() 361 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup() 365 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_lookup() 427 XFS_STATS_INC(dp->i_mount, xs_dir_remove); in xfs_dir_removename() 433 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename() 437 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_removename() [all …]
|
D | xfs_inode_fork.c | 180 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local() 181 xfs_warn(ip->i_mount, in xfs_iformat_local() 184 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local() 205 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_extents() 220 xfs_warn(ip->i_mount, "corrupt inode %Lu ((a)extents = %d).", in xfs_iformat_extents() 270 struct xfs_mount *mp = ip->i_mount; in xfs_iformat_btree() 313 xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork), in xfs_iformat_btree() 348 struct xfs_mount *mp = ip->i_mount; in xfs_iroot_realloc() 418 XFS_BMBT_BLOCK_LEN(ip->i_mount)); in xfs_iroot_realloc() 616 mp = ip->i_mount; in xfs_iflush_fork()
|
D | xfs_attr.c | 77 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init() 136 XFS_STATS_INC(ip->i_mount, xs_attr_get); in xfs_attr_get() 138 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_attr_get() 166 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_calc_size() 202 struct xfs_mount *mp = dp->i_mount; in xfs_attr_set() 211 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_set() 384 struct xfs_mount *mp = dp->i_mount; in xfs_attr_remove() 390 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_remove() 808 mp = dp->i_mount; in xfs_attr_node_addname() 1037 state->mp = dp->i_mount; in xfs_attr_node_removename() [all …]
|
D | xfs_bmap.c | 173 mp = ip->i_mount; in xfs_bmap_worst_indlen() 197 struct xfs_mount *mp = ip->i_mount; in xfs_default_attroffset() 347 mp = ip->i_mount; in xfs_bmap_check_leaf_extents() 604 mp = ip->i_mount; in xfs_bmap_btree_to_extents() 670 mp = ip->i_mount; in xfs_bmap_extents_to_btree() 856 args.mp = ip->i_mount; in xfs_bmap_local_to_extents() 931 mp = ip->i_mount; in xfs_bmap_add_attrfork_btree() 1004 dargs.geo = ip->i_mount->m_dir_geo; in xfs_bmap_add_attrfork_local() 1041 mp = ip->i_mount; in xfs_bmap_add_attrfork() 1156 struct xfs_mount *mp = ip->i_mount; in xfs_iread_extents() [all …]
|
D | xfs_dir2_sf.c | 71 mp = dp->i_mount; in xfs_dir2_block_sfsize() 162 mp = dp->i_mount; in xfs_dir2_block_to_sf() 287 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_addname() 623 struct xfs_mount *mp = ip->i_mount; in xfs_dir2_sf_verify() 803 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_lookup() 840 cmp = dp->i_mount->m_dirnameops->compname(args, sfep->name, in xfs_dir2_sf_lookup() 889 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_removename() 973 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_replace()
|
D | xfs_inode_fork.h | 51 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version)) 54 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version) - \
|
D | xfs_dir2_node.c | 61 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check() 74 xfs_corruption_error(__func__, XFS_ERRLEVEL_LOW, dp->i_mount, in xfs_dir3_leaf_check() 166 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_header_check() 255 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_get_buf() 521 dp->d_ops->free_max_bests(dp->i_mount->m_dir_geo)) == 0); in xfs_dir2_free_hdr_check() 590 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_addname() 742 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_entry() 1111 xfs_alert(dp->i_mount, in xfs_dir2_leafn_rebalance() 1635 state->mp = args->dp->i_mount; in xfs_dir2_node_addname() 1721 mp = dp->i_mount; in xfs_dir2_node_addname_int() [all …]
|