Home
last modified time | relevance | path

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

/linux-4.4.14/fs/xfs/
Dxfs_icache.c76 ip->i_mount = mp; in xfs_inode_alloc()
132 XFS_STATS_DEC(ip->i_mount, vn_active); in xfs_inode_free()
149 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit()
495 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_inode_ag_walk_grab()
738 XFS_INO_TO_AGINO(ip->i_mount, ip->i_ino), in __xfs_inode_set_reclaim_tag()
743 spin_lock(&ip->i_mount->m_perag_lock); in __xfs_inode_set_reclaim_tag()
744 radix_tree_tag_set(&ip->i_mount->m_perag_tree, in __xfs_inode_set_reclaim_tag()
745 XFS_INO_TO_AGNO(ip->i_mount, ip->i_ino), in __xfs_inode_set_reclaim_tag()
747 spin_unlock(&ip->i_mount->m_perag_lock); in __xfs_inode_set_reclaim_tag()
750 xfs_reclaim_work_queue(ip->i_mount); in __xfs_inode_set_reclaim_tag()
[all …]
Dxfs_file.c148 tp = xfs_trans_alloc(ip->i_mount, XFS_TRANS_WRITEID); in xfs_update_prealloc_flags()
149 error = xfs_trans_reserve(tp, &M_RES(ip->i_mount)->tr_writeid, 0, 0); in xfs_update_prealloc_flags()
190 struct xfs_mount *mp = ip->i_mount; in xfs_dir_fsync()
214 struct xfs_mount *mp = ip->i_mount; in xfs_file_fsync()
294 struct xfs_mount *mp = ip->i_mount; in xfs_file_read_iter()
397 XFS_STATS_INC(ip->i_mount, xs_read_calls); in xfs_file_splice_read()
402 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_file_splice_read()
415 XFS_STATS_ADD(ip->i_mount, xs_read_bytes, ret); in xfs_file_splice_read()
434 struct xfs_mount *mp = ip->i_mount; in xfs_zero_last_block()
482 struct xfs_mount *mp = ip->i_mount; in xfs_zero_eof()
[all …]
Dxfs_pnfs.c88 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()
230 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize()
261 struct xfs_mount *mp = ip->i_mount; in xfs_fs_commit_blocks()
Dxfs_dir2_readdir.c78 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()
240 xfs_dir3_get_dtype(dp->i_mount, filetype))) { in xfs_dir2_block_getdents()
392 XFS_FSB_TO_DADDR(dp->i_mount, map->br_startblock) : in xfs_dir2_leaf_readbuf()
422 XFS_FSB_TO_DADDR(dp->i_mount, in xfs_dir2_leaf_readbuf()
625 xfs_dir3_get_dtype(dp->i_mount, filetype))) in xfs_dir2_leaf_getdents()
665 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_readdir()
669 XFS_STATS_INC(dp->i_mount, xs_dir_getdents); in xfs_readdir()
672 args.geo = dp->i_mount->m_dir_geo; in xfs_readdir()
Dxfs_filestream.c128 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()
317 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_lookup_ag()
368 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_new_ag()
409 xfs_mru_cache_delete(ip->i_mount->m_filestream, ip->i_ino); in xfs_filestream_deassociate()
Dxfs_attr_inactive.c87 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()
400 mp = dp->i_mount; in xfs_attr_inactive()
Dxfs_acl.c151 len = XFS_ACL_MAX_SIZE(ip->i_mount); in xfs_get_acl()
170 acl = xfs_acl_from_disk(xfs_acl, len, XFS_ACL_MAX_ENTRIES(ip->i_mount)); in xfs_get_acl()
203 int len = XFS_ACL_MAX_SIZE(ip->i_mount); in __xfs_set_acl()
213 (XFS_ACL_MAX_ENTRIES(ip->i_mount) - acl->a_count); in __xfs_set_acl()
Dxfs_attr_list.c148 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()
515 XFS_STATS_INC(dp->i_mount, xs_attr_list); in xfs_attr_list_int()
517 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_list_int()
Dxfs_bmap_util.c55 (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()
72 struct xfs_mount *mp = ip->i_mount; in xfs_zero_extent()
176 mp = ap->ip->i_mount; in xfs_bmap_rtalloc()
434 mp = ip->i_mount; in xfs_bmap_count_blocks()
483 mp = ip->i_mount; in xfs_getbmapx_fix_eof_hole()
498 fileblock = XFS_BB_TO_FSB(ip->i_mount, out->bmv_offset); in xfs_getbmapx_fix_eof_hole()
541 mp = ip->i_mount; in xfs_getbmap()
555 ip->i_mount); in xfs_getbmap()
780 if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_bmap_punch_delalloc_range()
[all …]
Dxfs_aops.c63 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()
195 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; in xfs_finish_ioend()
217 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_end_io()
290 struct xfs_mount *mp = ip->i_mount; in xfs_map_blocks()
606 struct xfs_mount *m = XFS_I(inode)->i_mount; in xfs_map_buffer()
897 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_aops_discard_page()
900 xfs_alert(ip->i_mount, in xfs_aops_discard_page()
913 start_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_aops_discard_page()
917 if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) { in xfs_aops_discard_page()
[all …]
Dxfs_symlink.c50 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()
449 mp = ip->i_mount; in xfs_inactive_symlink_rmt()
564 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_symlink()
Dxfs_qm.c290 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()
1045 struct xfs_mount *mp = ip->i_mount; in xfs_qm_quotacheck_dqadjust()
1610 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_dqalloc()
1755 ASSERT(XFS_IS_QUOTA_RUNNING(ip->i_mount)); in xfs_qm_vop_chown()
1790 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_chown_reserve()
1821 if (XFS_IS_GQUOTA_ON(ip->i_mount) && gdqp && in xfs_qm_vop_chown_reserve()
1830 if (XFS_IS_PQUOTA_ON(ip->i_mount) && pdqp && in xfs_qm_vop_chown_reserve()
[all …]
Dxfs_ioctl.c105 memcpy(&handle.ha_fsid, ip->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_find_handle()
327 xfs_mount_t *mp = ip->i_mount; in xfs_set_dmattrs()
630 if (!xfs_sb_version_hasextflgbit(&ip->i_mount->m_sb) && in xfs_ioc_space()
916 fa.fsx_extsize = ip->i_d.di_extsize << ip->i_mount->m_sb.sb_blocklog; in xfs_ioc_fsgetxattr()
1015 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_xflags()
1056 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_get_trans()
1113 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr_check_extsize()
1158 !xfs_sb_version_hasprojid32bit(&ip->i_mount->m_sb)) in xfs_ioctl_setattr_check_projid()
1183 struct xfs_mount *mp = ip->i_mount; in xfs_ioctl_setattr()
1491 if (ip->i_mount != tip->i_mount) { in xfs_ioc_swapext()
[all …]
Dxfs_iomap.c100 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()
413 if (!dq || !xfs_this_quota_on(ip->i_mount, type)) in xfs_quota_need_throttle()
575 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_delay()
689 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_allocate()
844 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten()
Dxfs_filestream.h36 return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) || in xfs_inode_is_filestream()
Dxfs_inode.c74 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint()
687 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_lookup()
695 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup()
1139 struct xfs_mount *mp = dp->i_mount; in xfs_create()
1324 struct xfs_mount *mp = dp->i_mount; in xfs_create_tmpfile()
1425 xfs_mount_t *mp = tdp->i_mount; in xfs_link()
1551 struct xfs_mount *mp = ip->i_mount; in xfs_itruncate_extents()
1640 xfs_mount_t *mp = ip->i_mount; in xfs_release()
1723 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_truncate()
1778 struct xfs_mount *mp = ip->i_mount; in xfs_inactive_ifree()
[all …]
Dxfs_iops.c448 struct xfs_mount *mp = ip->i_mount; in xfs_vn_getattr()
543 xfs_mount_t *mp = ip->i_mount; in xfs_setattr_nonsize()
749 struct xfs_mount *mp = ip->i_mount; in xfs_setattr_size()
975 struct xfs_mount *mp = ip->i_mount; in xfs_vn_update_time()
1205 if (ip->i_mount->m_flags & XFS_MOUNT_DAX) in xfs_diflags_to_iflags()
1258 ip->d_ops = ip->i_mount->m_nondir_inode_ops; in xfs_setup_inode()
1273 ip->d_ops = ip->i_mount->m_dir_inode_ops; in xfs_setup_inode()
Dxfs_trans_inode.c47 xfs_inode_item_init(ip, ip->i_mount); in xfs_trans_ijoin()
Dxfs_qm_bhv.c72 xfs_mount_t *mp = ip->i_mount; in xfs_qm_statvfs()
Dxfs_inode.h39 struct xfs_mount *i_mount; /* fs mount struct ptr */ member
371 (((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \
Dxfs_qm_syscalls.c728 if (ip == ip->i_mount->m_quotainfo->qi_uquotaip || in xfs_dqrele_inode()
729 ip == ip->i_mount->m_quotainfo->qi_gquotaip || in xfs_dqrele_inode()
730 ip == ip->i_mount->m_quotainfo->qi_pquotaip) { in xfs_dqrele_inode()
Dxfs_export.c230 struct xfs_mount *mp = ip->i_mount; in xfs_fs_nfs_commit_metadata()
Dxfs_inode_item.c450 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()
Dxfs_super.c926 XFS_STATS_INC(ip->i_mount, vn_reclaim); in xfs_fs_destroy_inode()
928 ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); in xfs_fs_destroy_inode()
987 XFS_STATS_INC(ip->i_mount, vn_rele); in xfs_fs_evict_inode()
988 XFS_STATS_INC(ip->i_mount, vn_remove); in xfs_fs_evict_inode()
Dxfs_trans_dquot.c816 struct xfs_mount *mp = ip->i_mount; in xfs_trans_reserve_quota_nblks()
Dxfs_ioctl32.c533 struct xfs_mount *mp = ip->i_mount; in xfs_file_compat_ioctl()
Dxfs_trace.h555 __entry->streams = xfs_filestream_peek_ag(ip->i_mount, agno);
587 __entry->streams = xfs_filestream_peek_ag(ip->i_mount, agno);
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_dir2.c243 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
274 XFS_STATS_INC(dp->i_mount, xs_dir_create); in xfs_dir_createname()
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()
368 XFS_STATS_INC(dp->i_mount, xs_dir_lookup); in xfs_dir_lookup()
379 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
383 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_lookup()
447 XFS_STATS_INC(dp->i_mount, xs_dir_remove); in xfs_dir_removename()
453 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
457 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_removename()
[all …]
Dxfs_inode_fork.c92 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 …]
Dxfs_attr.c88 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init()
128 XFS_STATS_INC(ip->i_mount, xs_attr_get); in xfs_attr_get()
130 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) in xfs_attr_get()
168 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_calc_size()
204 struct xfs_mount *mp = dp->i_mount; in xfs_attr_set()
214 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_set()
409 struct xfs_mount *mp = dp->i_mount; in xfs_attr_remove()
417 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_remove()
888 mp = dp->i_mount; in xfs_attr_node_addname()
1159 state->mp = dp->i_mount; in xfs_attr_node_removename()
[all …]
Dxfs_inode_fork.h99 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version))
102 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version) - \
Dxfs_bmap.c188 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()
998 mp = ip->i_mount; in xfs_bmap_add_attrfork_btree()
1078 dargs.geo = ip->i_mount->m_dir_geo; in xfs_bmap_add_attrfork_local()
1120 mp = ip->i_mount; in xfs_bmap_add_attrfork()
1262 mp = ip->i_mount; in xfs_bmap_read_extents()
[all …]
Dxfs_dir2_sf.c83 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()
Dxfs_dir2_node.c79 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
206 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_free_get_buf()
471 dp->d_ops->free_max_bests(dp->i_mount->m_dir_geo)) == 0); in xfs_dir2_free_hdr_check()
538 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_addname()
690 mp = dp->i_mount; in xfs_dir2_leafn_lookup_for_entry()
1062 xfs_alert(dp->i_mount, in xfs_dir2_leafn_rebalance()
1586 state->mp = args->dp->i_mount; in xfs_dir2_node_addname()
1671 mp = dp->i_mount; in xfs_dir2_node_addname_int()
2029 state->mp = args->dp->i_mount; in xfs_dir2_node_lookup()
2082 state->mp = args->dp->i_mount; in xfs_dir2_node_removename()
[all …]
Dxfs_attr_remote.c354 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get()
419 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set()
562 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_remove()
Dxfs_bmap_btree.h31 (xfs_sb_version_hasextflgbit(&((x)->i_mount->m_sb)) ? \
Dxfs_symlink_remote.c183 struct xfs_mount *mp = ip->i_mount; in xfs_symlink_local_to_remote()
Dxfs_dir2_block.c137 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
677 mp = dp->i_mount; in xfs_dir2_block_lookup_int()
932 mp = dp->i_mount; in xfs_dir2_leaf_to_block()
1079 mp = dp->i_mount; in xfs_dir2_sf_to_block()
Dxfs_attr_leaf.c389 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit()
540 mp = dp->i_mount; in xfs_attr_shortform_add()
611 mp = dp->i_mount; in xfs_attr_shortform_remove()
861 if ((dp->i_mount->m_flags & XFS_MOUNT_ATTR2) && in xfs_attr_shortform_allfit()
910 ASSERT(dp->i_mount->m_flags & XFS_MOUNT_ATTR2); in xfs_attr3_leaf_to_shortform()
967 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_leaf_to_node()
1038 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_leaf_create()
2248 args->dp->i_mount, in xfs_attr3_leaf_lookup_int()
2300 args->rmtblkcnt = xfs_attr3_rmt_blocks(args->dp->i_mount, in xfs_attr3_leaf_getvalue()
Dxfs_da_btree.c2160 mp = dp->i_mount; in xfs_da3_swap_lastblock()
2467 struct xfs_mount *mp = dp->i_mount; in xfs_dabuf_map()
2567 bp = xfs_trans_get_buf_map(trans, dp->i_mount->m_ddev_targp, in xfs_da_get_buf()
2616 error = xfs_trans_read_buf_map(dp->i_mount, trans, in xfs_da_read_buf()
2617 dp->i_mount->m_ddev_targp, in xfs_da_read_buf()
2662 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()
Dxfs_bmap_btree.c65 struct xfs_mount *mp = ip->i_mount; in xfs_bmdr_to_bmbt()
878 cur = xfs_bmbt_init_cursor(ip->i_mount, tp, ip, whichfork); in xfs_bmbt_change_owner()
Dxfs_dir2_leaf.c76 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
350 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_leaf_get_buf()
1235 mp = dp->i_mount; in xfs_dir2_leaf_lookup_int()
Dxfs_dir2_data.c519 struct xfs_da_geometry *geo = dp->i_mount->m_dir_geo; in xfs_dir2_data_freescan()
590 mp = dp->i_mount; in xfs_dir3_data_init()