/linux-4.1.27/fs/xfs/ |
D | xfs_icache.c | 76 ip->i_mount = mp; in xfs_inode_alloc() 149 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit() 493 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_inode_ag_walk_grab() 736 XFS_INO_TO_AGINO(ip->i_mount, ip->i_ino), in __xfs_inode_set_reclaim_tag() 741 spin_lock(&ip->i_mount->m_perag_lock); in __xfs_inode_set_reclaim_tag() 742 radix_tree_tag_set(&ip->i_mount->m_perag_tree, in __xfs_inode_set_reclaim_tag() 743 XFS_INO_TO_AGNO(ip->i_mount, ip->i_ino), in __xfs_inode_set_reclaim_tag() 745 spin_unlock(&ip->i_mount->m_perag_lock); in __xfs_inode_set_reclaim_tag() 748 xfs_reclaim_work_queue(ip->i_mount); in __xfs_inode_set_reclaim_tag() 750 trace_xfs_perag_set_reclaim(ip->i_mount, pag->pag_agno, in __xfs_inode_set_reclaim_tag() [all …]
|
D | xfs_pnfs.c | 88 struct xfs_mount *mp = ip->i_mount; in xfs_bmbt_to_iomap() 98 XFS_FSB_TO_DADDR(ip->i_mount, imap->br_startblock); in xfs_bmbt_to_iomap() 121 struct xfs_mount *mp = ip->i_mount; in xfs_fs_map_blocks() 225 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize() 256 struct xfs_mount *mp = ip->i_mount; in xfs_fs_commit_blocks()
|
D | xfs_filestream.c | 128 xfs_filestream_put_ag(item->ip->i_mount, item->ag); in xfs_fstrm_free_func() 147 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_pick_ag() 316 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_lookup_ag() 367 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_new_ag() 408 xfs_mru_cache_delete(ip->i_mount->m_filestream, ip->i_ino); in xfs_filestream_deassociate()
|
D | xfs_dir2_readdir.c | 78 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_getdents() 144 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_sf_getdents() 237 xfs_dir3_get_dtype(dp->i_mount, filetype))) { in xfs_dir2_block_getdents() 389 XFS_FSB_TO_DADDR(dp->i_mount, map->br_startblock) : in xfs_dir2_leaf_readbuf() 419 XFS_FSB_TO_DADDR(dp->i_mount, in xfs_dir2_leaf_readbuf() 619 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_leaf_getdents() 660 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_readdir() 667 args.geo = dp->i_mount->m_dir_geo; in xfs_readdir()
|
D | xfs_attr_inactive.c | 87 dblkno = XFS_FSB_TO_DADDR(dp->i_mount, in xfs_attr3_leaf_freextent() 89 dblkcnt = XFS_FSB_TO_BB(dp->i_mount, in xfs_attr3_leaf_freextent() 92 dp->i_mount->m_ddev_targp, in xfs_attr3_leaf_freextent() 179 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive() 401 mp = dp->i_mount; in xfs_attr_inactive()
|
D | xfs_acl.c | 148 len = XFS_ACL_MAX_SIZE(ip->i_mount); in xfs_get_acl() 166 acl = xfs_acl_from_disk(xfs_acl, XFS_ACL_MAX_ENTRIES(ip->i_mount)); in xfs_get_acl() 199 int len = XFS_ACL_MAX_SIZE(ip->i_mount); in __xfs_set_acl() 209 (XFS_ACL_MAX_ENTRIES(ip->i_mount) - acl->a_count); in __xfs_set_acl()
|
D | xfs_file.c | 138 tp = xfs_trans_alloc(ip->i_mount, XFS_TRANS_WRITEID); in xfs_update_prealloc_flags() 139 error = xfs_trans_reserve(tp, &M_RES(ip->i_mount)->tr_writeid, 0, 0); in xfs_update_prealloc_flags() 180 struct xfs_mount *mp = ip->i_mount; in xfs_dir_fsync() 204 struct xfs_mount *mp = ip->i_mount; in xfs_file_fsync() 273 struct xfs_mount *mp = ip->i_mount; in xfs_file_read_iter() 374 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_file_splice_read() 402 struct xfs_mount *mp = ip->i_mount; in xfs_zero_last_block() 450 struct xfs_mount *mp = ip->i_mount; in xfs_zero_eof() 663 struct xfs_mount *mp = ip->i_mount; in xfs_file_dio_aio_write() 812 xfs_flush_inodes(ip->i_mount); in xfs_file_buffered_aio_write() [all …]
|
D | xfs_aops.c | 63 struct xfs_mount *mp = ip->i_mount; in xfs_find_bdev_for_inode() 104 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_setfilesize_trans_alloc() 191 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_finish_ioend() 213 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_end_io() 283 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks() 601 struct xfs_mount *m = XFS_I(inode)->i_mount; in xfs_map_buffer() 892 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_aops_discard_page() 895 xfs_alert(ip->i_mount, in xfs_aops_discard_page() 908 start_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_aops_discard_page() 912 if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_aops_discard_page() [all …]
|
D | xfs_attr_list.c | 148 context->dp->i_mount, sfe); in xfs_attr_shortform_list() 230 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list() 309 context->dp->i_mount, in xfs_attr_node_list() 375 struct xfs_mount *mp = context->dp->i_mount; in xfs_attr3_leaf_list_int() 449 args.geo = context->dp->i_mount->m_attr_geo; in xfs_attr3_leaf_list_int() 457 args.dp->i_mount, valuelen); in xfs_attr3_leaf_list_int() 517 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_list_int()
|
D | xfs_bmap_util.c | 55 (xfs_daddr_t)XFS_FSB_TO_BB((ip)->i_mount, (fsb)) : \ in xfs_fsb_to_db() 56 XFS_FSB_TO_DADDR((ip)->i_mount, (fsb))); in xfs_fsb_to_db() 157 mp = ap->ip->i_mount; in xfs_bmap_rtalloc() 408 mp = ip->i_mount; in xfs_bmap_count_blocks() 457 mp = ip->i_mount; in xfs_getbmapx_fix_eof_hole() 472 fileblock = XFS_BB_TO_FSB(ip->i_mount, out->bmv_offset); in xfs_getbmapx_fix_eof_hole() 515 mp = ip->i_mount; in xfs_getbmap() 529 ip->i_mount); in xfs_getbmap() 754 if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_bmap_punch_delalloc_range() 755 xfs_alert(ip->i_mount, in xfs_bmap_punch_delalloc_range() [all …]
|
D | xfs_symlink.c | 50 struct xfs_mount *mp = ip->i_mount; in xfs_readlink_bmap() 128 struct xfs_mount *mp = ip->i_mount; in xfs_readlink() 173 struct xfs_mount *mp = dp->i_mount; in xfs_symlink() 453 mp = ip->i_mount; in xfs_inactive_symlink_rmt() 568 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_symlink()
|
D | xfs_qm.c | 290 error = xfs_qm_dqget(ip->i_mount, ip, id, type, in xfs_qm_dqattach_one() 310 struct xfs_mount *mp = ip->i_mount; in xfs_qm_need_dqattach() 335 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked() 410 ASSERT(!xfs_is_quota_inode(&ip->i_mount->m_sb, ip->i_ino)); in xfs_qm_dqdetach() 1046 struct xfs_mount *mp = ip->i_mount; in xfs_qm_quotacheck_dqadjust() 1611 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_dqalloc() 1756 ASSERT(XFS_IS_QUOTA_RUNNING(ip->i_mount)); in xfs_qm_vop_chown() 1791 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_chown_reserve() 1822 if (XFS_IS_GQUOTA_ON(ip->i_mount) && gdqp && in xfs_qm_vop_chown_reserve() 1831 if (XFS_IS_PQUOTA_ON(ip->i_mount) && pdqp && in xfs_qm_vop_chown_reserve() [all …]
|
D | xfs_iomap.c | 100 xfs_alert_tag(ip->i_mount, XFS_PTAG_FSBLOCK_ZERO, in xfs_alert_fsblock_zero() 120 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_direct() 375 if (!dq || !xfs_this_quota_on(ip->i_mount, type)) in xfs_quota_need_throttle() 537 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_delay() 651 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_allocate() 806 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten()
|
D | xfs_ioctl.c | 104 memcpy(&handle.ha_fsid, ip->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_find_handle() 326 xfs_mount_t *mp = ip->i_mount; in xfs_set_dmattrs() 619 if (!xfs_sb_version_hasextflgbit(&ip->i_mount->m_sb) && in xfs_ioc_space() 905 fa.fsx_extsize = ip->i_d.di_extsize << ip->i_mount->m_sb.sb_blocklog; in xfs_ioc_fsgetxattr() 1004 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags() 1045 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans() 1102 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize() 1147 !xfs_sb_version_hasprojid32bit(&ip->i_mount->m_sb)) in xfs_ioctl_setattr_check_projid() 1172 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr() 1480 if (ip->i_mount != tip->i_mount) { in xfs_ioc_swapext() [all …]
|
D | xfs_filestream.h | 36 return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) || in xfs_inode_is_filestream()
|
D | xfs_inode.c | 74 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint() 636 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_lookup() 646 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup() 1123 struct xfs_mount *mp = dp->i_mount; in xfs_create() 1316 struct xfs_mount *mp = dp->i_mount; in xfs_create_tmpfile() 1425 xfs_mount_t *mp = tdp->i_mount; in xfs_link() 1556 struct xfs_mount *mp = ip->i_mount; in xfs_itruncate_extents() 1668 xfs_mount_t *mp = ip->i_mount; in xfs_release() 1751 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_truncate() 1806 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_ifree() [all …]
|
D | xfs_trans_inode.c | 47 xfs_inode_item_init(ip, ip->i_mount); in xfs_trans_ijoin()
|
D | xfs_iops.c | 451 struct xfs_mount *mp = ip->i_mount; in xfs_vn_getattr() 546 xfs_mount_t *mp = ip->i_mount; in xfs_setattr_nonsize() 752 struct xfs_mount *mp = ip->i_mount; in xfs_setattr_size() 978 struct xfs_mount *mp = ip->i_mount; in xfs_vn_update_time() 1261 ip->d_ops = ip->i_mount->m_nondir_inode_ops; in xfs_setup_inode() 1276 ip->d_ops = ip->i_mount->m_dir_inode_ops; in xfs_setup_inode()
|
D | xfs_qm_bhv.c | 72 xfs_mount_t *mp = ip->i_mount; in xfs_qm_statvfs()
|
D | xfs_inode.h | 39 struct xfs_mount *i_mount; /* fs mount struct ptr */ member 338 (((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \
|
D | xfs_qm_syscalls.c | 730 if (ip == ip->i_mount->m_quotainfo->qi_uquotaip || in xfs_dqrele_inode() 731 ip == ip->i_mount->m_quotainfo->qi_gquotaip || in xfs_dqrele_inode() 732 ip == ip->i_mount->m_quotainfo->qi_pquotaip) { in xfs_dqrele_inode()
|
D | xfs_export.c | 230 struct xfs_mount *mp = ip->i_mount; in xfs_fs_nfs_commit_metadata()
|
D | xfs_inode_item.c | 450 ASSERT(iip->ili_fields != 0 || XFS_FORCED_SHUTDOWN(ip->i_mount)); in xfs_inode_item_push() 451 ASSERT(iip->ili_logged == 0 || XFS_FORCED_SHUTDOWN(ip->i_mount)); in xfs_inode_item_push()
|
D | xfs_trans_dquot.c | 810 struct xfs_mount *mp = ip->i_mount; in xfs_trans_reserve_quota_nblks()
|
D | xfs_ioctl32.c | 533 struct xfs_mount *mp = ip->i_mount; in xfs_file_compat_ioctl()
|
D | xfs_trace.h | 555 __entry->streams = xfs_filestream_peek_ag(ip->i_mount, agno); 587 __entry->streams = xfs_filestream_peek_ag(ip->i_mount, agno);
|
D | xfs_super.c | 928 ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); in xfs_fs_destroy_inode()
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 92 xfs_warn(ip->i_mount, in xfs_iformat_fork() 100 ip->i_mount, dip); in xfs_iformat_fork() 104 if (unlikely(dip->di_forkoff > ip->i_mount->m_sb.sb_inodesize)) { in xfs_iformat_fork() 105 xfs_warn(ip->i_mount, "corrupt dinode %Lu, forkoff = 0x%x.", in xfs_iformat_fork() 109 ip->i_mount, dip); in xfs_iformat_fork() 114 !ip->i_mount->m_rtdev_targp)) { in xfs_iformat_fork() 115 xfs_warn(ip->i_mount, in xfs_iformat_fork() 119 XFS_ERRLEVEL_LOW, ip->i_mount, dip); in xfs_iformat_fork() 130 ip->i_mount, dip); in xfs_iformat_fork() 146 xfs_warn(ip->i_mount, in xfs_iformat_fork() [all …]
|
D | xfs_dir2.c | 243 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init() 281 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname() 285 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_createname() 378 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup() 382 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_lookup() 450 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename() 454 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_removename() 515 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace() 519 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_replace() 582 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_grow_inode() [all …]
|
D | xfs_attr.c | 88 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init() 130 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() 212 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_set() 410 struct xfs_mount *mp = dp->i_mount; in xfs_attr_remove() 418 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_remove() 891 mp = dp->i_mount; in xfs_attr_node_addname() 1162 state->mp = dp->i_mount; in xfs_attr_node_removename() 1423 state->mp = args->dp->i_mount; in xfs_attr_node_get()
|
D | xfs_inode_fork.h | 99 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version)) 102 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version) - \
|
D | xfs_bmap.c | 188 mp = ip->i_mount; in xfs_bmap_worst_indlen() 212 struct xfs_mount *mp = ip->i_mount; in xfs_default_attroffset() 356 mp = ip->i_mount; in xfs_bmap_check_leaf_extents() 677 mp = ip->i_mount; in xfs_bmap_btree_to_extents() 743 mp = ip->i_mount; in xfs_bmap_extents_to_btree() 925 args.mp = ip->i_mount; in xfs_bmap_local_to_extents() 996 mp = ip->i_mount; in xfs_bmap_add_attrfork_btree() 1076 dargs.geo = ip->i_mount->m_dir_geo; in xfs_bmap_add_attrfork_local() 1119 mp = ip->i_mount; in xfs_bmap_add_attrfork() 1263 mp = ip->i_mount; in xfs_bmap_read_extents() [all …]
|
D | xfs_dir2_sf.c | 83 mp = dp->i_mount; in xfs_dir2_block_sfsize() 176 mp = dp->i_mount; in xfs_dir2_block_to_sf() 305 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_addname() 718 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_lookup() 755 cmp = dp->i_mount->m_dirnameops->compname(args, sfep->name, in xfs_dir2_sf_lookup() 804 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_removename() 888 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_replace()
|
D | xfs_dir2_node.c | 78 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check() 202 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_get_buf() 467 dp->d_ops->free_max_bests(dp->i_mount->m_dir_geo)) == 0); in xfs_dir2_free_hdr_check() 534 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_addname() 686 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_entry() 1058 xfs_alert(dp->i_mount, in xfs_dir2_leafn_rebalance() 1582 state->mp = args->dp->i_mount; in xfs_dir2_node_addname() 1667 mp = dp->i_mount; in xfs_dir2_node_addname_int() 2026 state->mp = args->dp->i_mount; in xfs_dir2_node_lookup() 2079 state->mp = args->dp->i_mount; in xfs_dir2_node_removename() [all …]
|
D | xfs_attr_remote.c | 353 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get() 418 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set() 561 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_remove()
|
D | xfs_bmap_btree.h | 31 (xfs_sb_version_hasextflgbit(&((x)->i_mount->m_sb)) ? \
|
D | xfs_symlink_remote.c | 178 struct xfs_mount *mp = ip->i_mount; in xfs_symlink_local_to_remote()
|
D | xfs_dir2_block.c | 133 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read() 673 mp = dp->i_mount; in xfs_dir2_block_lookup_int() 928 mp = dp->i_mount; in xfs_dir2_leaf_to_block() 1075 mp = dp->i_mount; in xfs_dir2_sf_to_block()
|
D | xfs_attr_leaf.c | 385 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit() 536 mp = dp->i_mount; in xfs_attr_shortform_add() 607 mp = dp->i_mount; in xfs_attr_shortform_remove() 857 if ((dp->i_mount->m_flags & XFS_MOUNT_ATTR2) && in xfs_attr_shortform_allfit() 906 ASSERT(dp->i_mount->m_flags & XFS_MOUNT_ATTR2); in xfs_attr3_leaf_to_shortform() 963 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_leaf_to_node() 1034 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_leaf_create() 2244 args->dp->i_mount, in xfs_attr3_leaf_lookup_int() 2296 args->rmtblkcnt = xfs_attr3_rmt_blocks(args->dp->i_mount, in xfs_attr3_leaf_getvalue()
|
D | xfs_da_btree.c | 2149 mp = dp->i_mount; in xfs_da3_swap_lastblock() 2456 struct xfs_mount *mp = dp->i_mount; in xfs_dabuf_map() 2556 bp = xfs_trans_get_buf_map(trans, dp->i_mount->m_ddev_targp, in xfs_da_get_buf() 2605 error = xfs_trans_read_buf_map(dp->i_mount, trans, in xfs_da_read_buf() 2606 dp->i_mount->m_ddev_targp, in xfs_da_read_buf() 2651 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()
|
D | xfs_bmap_btree.c | 65 struct xfs_mount *mp = ip->i_mount; in xfs_bmdr_to_bmbt() 876 cur = xfs_bmbt_init_cursor(ip->i_mount, tp, ip, whichfork); in xfs_bmbt_change_owner()
|
D | xfs_dir2_leaf.c | 75 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check() 345 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_leaf_get_buf() 1230 mp = dp->i_mount; in xfs_dir2_leaf_lookup_int()
|
D | xfs_dir2_data.c | 514 struct xfs_da_geometry *geo = dp->i_mount->m_dir_geo; in xfs_dir2_data_freescan() 585 mp = dp->i_mount; in xfs_dir3_data_init()
|