/fs/xfs/ |
D | xfs_trans_space.h | 24 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ argument 26 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument 27 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument 31 #define XFS_DAENTER_1B(mp,w) ((w) == XFS_DATA_FORK ? (mp)->m_dirblkfsbs : 1) argument 32 #define XFS_DAENTER_DBS(mp,w) \ argument 34 #define XFS_DAENTER_BLOCKS(mp,w) \ argument 36 #define XFS_DAENTER_BMAP1B(mp,w) \ argument 38 #define XFS_DAENTER_BMAPS(mp,w) \ argument 40 #define XFS_DAENTER_SPACE_RES(mp,w) \ argument 42 #define XFS_DAREMOVE_SPACE_RES(mp,w) XFS_DAENTER_BMAPS(mp,w) argument [all …]
|
D | xfs_trans.c | 116 struct xfs_mount *mp) in xfs_calc_write_reservation() 145 struct xfs_mount *mp) in xfs_calc_itruncate_reservation() 175 struct xfs_mount *mp) in xfs_calc_rename_reservation() 200 struct xfs_mount *mp) in xfs_calc_link_reservation() 225 struct xfs_mount *mp) in xfs_calc_remove_reservation() 252 struct xfs_mount *mp) in xfs_calc_symlink_reservation() 286 struct xfs_mount *mp) in xfs_calc_create_reservation() 309 struct xfs_mount *mp) in xfs_calc_mkdir_reservation() 326 struct xfs_mount *mp) in xfs_calc_ifree_reservation() 347 struct xfs_mount *mp) in xfs_calc_ichange_reservation() [all …]
|
D | xfs_inum.h | 32 #define XFS_INO_OFFSET_BITS(mp) (mp)->m_sb.sb_inopblog argument 33 #define XFS_INO_AGBNO_BITS(mp) (mp)->m_sb.sb_agblklog argument 34 #define XFS_INO_AGINO_BITS(mp) (mp)->m_agino_log argument 35 #define XFS_INO_AGNO_BITS(mp) (mp)->m_agno_log argument 36 #define XFS_INO_BITS(mp) \ argument 38 #define XFS_INO_TO_AGNO(mp,i) \ argument 40 #define XFS_INO_TO_AGINO(mp,i) \ argument 42 #define XFS_INO_TO_AGBNO(mp,i) \ argument 45 #define XFS_INO_TO_OFFSET(mp,i) \ argument 47 #define XFS_INO_TO_FSB(mp,i) \ argument [all …]
|
D | xfs_mount.c | 58 #define xfs_icsb_balance_counter(mp, a, b) do { } while (0) argument 59 #define xfs_icsb_balance_counter_locked(mp, a, b) do { } while (0) argument 135 struct xfs_mount *mp) in xfs_uuid_mount() 178 struct xfs_mount *mp) in xfs_uuid_unmount() 206 xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_perag_get() 227 struct xfs_mount *mp, in xfs_perag_get_tag() 273 xfs_mount_t *mp) in xfs_free_perag() 315 xfs_mount_t *mp, in xfs_mount_validate_sb() 482 xfs_mount_t *mp, in xfs_initialize_perag() 683 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_sb_verify() local [all …]
|
D | xfs_filestream.c | 41 xfs_mount_t *mp, /* mount point */ in xfs_filestreams_trace() 66 #define TRACE0(mp,t) TRACE6(mp,t,0,0,0,0,0,0) argument 67 #define TRACE1(mp,t,a0) TRACE6(mp,t,a0,0,0,0,0,0) argument 68 #define TRACE2(mp,t,a0,a1) TRACE6(mp,t,a0,a1,0,0,0,0) argument 69 #define TRACE3(mp,t,a0,a1,a2) TRACE6(mp,t,a0,a1,a2,0,0,0) argument 70 #define TRACE4(mp,t,a0,a1,a2,a3) TRACE6(mp,t,a0,a1,a2,a3,0,0) argument 71 #define TRACE5(mp,t,a0,a1,a2,a3,a4) TRACE6(mp,t,a0,a1,a2,a3,a4,0) argument 72 #define TRACE6(mp,t,a0,a1,a2,a3,a4,a5) \ argument 78 #define TRACE_AG_SCAN(mp, ag, ag2) \ argument 80 #define TRACE_AG_PICK1(mp, max_ag, maxfree) \ argument [all …]
|
D | xfs_rtalloc.h | 38 #define XFS_BLOCKSIZE(mp) ((mp)->m_sb.sb_blocksize) argument 39 #define XFS_BLOCKMASK(mp) ((mp)->m_blockmask) argument 40 #define XFS_BLOCKWSIZE(mp) ((mp)->m_blockwsize) argument 41 #define XFS_BLOCKWMASK(mp) ((mp)->m_blockwmask) argument 46 #define XFS_SUMOFFS(mp,ls,bb) ((int)((ls) * (mp)->m_sb.sb_rbmblocks + (bb))) argument 47 #define XFS_SUMOFFSTOBLOCK(mp,s) \ argument 49 #define XFS_SUMPTR(mp,bp,so) \ argument 53 #define XFS_BITTOBLOCK(mp,bi) ((bi) >> (mp)->m_blkbit_log) argument 54 #define XFS_BLOCKTOBIT(mp,bb) ((bb) << (mp)->m_blkbit_log) argument 55 #define XFS_BITTOWORD(mp,bi) \ argument [all …]
|
D | xfs_fsops.c | 49 xfs_mount_t *mp, in xfs_fs_geometry() 121 struct xfs_mount *mp, in xfs_growfs_get_hdr_buf() 143 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_data_private() 529 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_log_private() 558 xfs_mount_t *mp, in xfs_growfs_data() 574 xfs_mount_t *mp, in xfs_growfs_log() 594 xfs_mount_t *mp, in xfs_fs_counts() 624 xfs_mount_t *mp, in xfs_reserve_blocks() 736 xfs_mount_t *mp) in xfs_fs_log_dummy() 757 xfs_mount_t *mp, in xfs_fs_goingdown() [all …]
|
D | xfs_icache.c | 52 struct xfs_mount *mp, in xfs_inode_alloc() 152 struct xfs_mount *mp = ip->i_mount; in xfs_iget_cache_hit() local 278 struct xfs_mount *mp, in xfs_iget_cache_miss() 391 xfs_mount_t *mp, in xfs_iget() 516 struct xfs_mount *mp, in xfs_inode_ag_walk() 624 struct xfs_mount *mp) in xfs_queue_eofblocks() 638 struct xfs_mount *mp = container_of(to_delayed_work(work), in xfs_eofblocks_worker() local 646 struct xfs_mount *mp, in xfs_inode_ag_iterator() 674 struct xfs_mount *mp, in xfs_inode_ag_iterator_tag() 710 struct xfs_mount *mp) in xfs_reclaim_work_queue() [all …]
|
D | xfs_qm.c | 67 struct xfs_mount *mp, in xfs_qm_dquot_walk() 137 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge() local 219 struct xfs_mount *mp, in xfs_qm_dqpurge_all() 235 struct xfs_mount *mp) in xfs_qm_unmount() 255 xfs_mount_t *mp) in xfs_qm_mount_quotas() 340 xfs_mount_t *mp) in xfs_qm_unmount_quotas() 484 struct xfs_mount *mp = ip->i_mount; in xfs_qm_need_dqattach() local 510 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked() local 623 struct xfs_mount *mp, in xfs_qm_calc_dquots_per_chunk() 641 xfs_mount_t *mp) in xfs_qm_init_quotainfo() [all …]
|
D | xfs_super.c | 176 struct xfs_mount *mp, in xfs_parseargs() 501 struct xfs_mount *mp, in xfs_showargs() 617 xfs_set_inode32(struct xfs_mount *mp) in xfs_set_inode32() 667 xfs_set_inode64(struct xfs_mount *mp) in xfs_set_inode64() 692 xfs_mount_t *mp, in xfs_blkdev_get() 725 struct xfs_mount *mp) in xfs_close_devices() 752 struct xfs_mount *mp) in xfs_open_devices() 826 struct xfs_mount *mp) in xfs_setup_devices() 859 struct xfs_mount *mp) in xfs_init_mount_workqueues() 909 struct xfs_mount *mp) in xfs_destroy_mount_workqueues() [all …]
|
D | xfs_trans.h | 215 #define XFS_ALLOCFREE_LOG_RES(mp,nx) \ argument 217 #define XFS_ALLOCFREE_LOG_COUNT(mp,nx) \ argument 227 #define XFS_DIROP_LOG_RES(mp) \ argument 230 #define XFS_DIROP_LOG_COUNT(mp) \ argument 235 #define XFS_WRITE_LOG_RES(mp) ((mp)->m_reservations.tr_write) argument 236 #define XFS_ITRUNCATE_LOG_RES(mp) ((mp)->m_reservations.tr_itruncate) argument 237 #define XFS_RENAME_LOG_RES(mp) ((mp)->m_reservations.tr_rename) argument 238 #define XFS_LINK_LOG_RES(mp) ((mp)->m_reservations.tr_link) argument 239 #define XFS_REMOVE_LOG_RES(mp) ((mp)->m_reservations.tr_remove) argument 240 #define XFS_SYMLINK_LOG_RES(mp) ((mp)->m_reservations.tr_symlink) argument [all …]
|
D | xfs_qm_syscalls.c | 61 xfs_mount_t *mp, in xfs_qm_scall_quotaoff() 229 struct xfs_mount *mp, in xfs_qm_scall_trunc_qfile() 282 xfs_mount_t *mp, in xfs_qm_scall_trunc_qfiles() 308 xfs_mount_t *mp, in xfs_qm_scall_quotaon() 406 struct xfs_mount *mp, in xfs_qm_scall_getqstat() 475 struct xfs_mount *mp, in xfs_qm_scall_setqlim() 639 xfs_mount_t *mp, in xfs_qm_log_quotaoff_end() 673 xfs_mount_t *mp, in xfs_qm_log_quotaoff() 724 struct xfs_mount *mp, in xfs_qm_scall_getquota() 887 struct xfs_mount *mp, in xfs_qm_dqrele_all_inodes()
|
D | xfs_symlink.c | 56 struct xfs_mount *mp, in xfs_symlink_blocks() 66 struct xfs_mount *mp, in xfs_symlink_hdr_set() 95 struct xfs_mount *mp, in xfs_symlink_hdr_ok() 118 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_symlink_verify() local 142 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_symlink_read_verify() local 160 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_symlink_write_verify() local 193 struct xfs_mount *mp = ip->i_mount; in xfs_symlink_local_to_remote() local 222 struct xfs_mount *mp = ip->i_mount; in xfs_readlink_bmap() local 296 struct xfs_mount *mp = ip->i_mount; in xfs_readlink() local 341 struct xfs_mount *mp = dp->i_mount; in xfs_symlink() local [all …]
|
D | xfs_alloc_btree.h | 59 #define XFS_BNO_BLOCK(mp) ((xfs_agblock_t)(XFS_AGFL_BLOCK(mp) + 1)) argument 60 #define XFS_CNT_BLOCK(mp) ((xfs_agblock_t)(XFS_BNO_BLOCK(mp) + 1)) argument 65 #define XFS_ALLOC_BLOCK_LEN(mp) \ argument 74 #define XFS_ALLOC_REC_ADDR(mp, block, index) \ argument 80 #define XFS_ALLOC_KEY_ADDR(mp, block, index) \ argument 86 #define XFS_ALLOC_PTR_ADDR(mp, block, index, maxrecs) \ argument
|
D | xfs_dir2_format.h | 227 #define XFS_DIR2_DATA_FIRSTDB(mp) \ argument 379 #define XFS_DIR3_DATA_DOT_OFFSET(mp) \ argument 381 #define XFS_DIR3_DATA_DOTDOT_OFFSET(mp) \ argument 383 #define XFS_DIR3_DATA_FIRST_OFFSET(mp) \ argument 465 #define XFS_DIR2_LEAF_FIRSTDB(mp) \ argument 532 xfs_dir3_max_leaf_ents(struct xfs_mount *mp, struct xfs_dir2_leaf *lp) in xfs_dir3_max_leaf_ents() 556 xfs_dir2_leaf_tail_p(struct xfs_mount *mp, struct xfs_dir2_leaf *lp) in xfs_dir2_leaf_tail_p() 580 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_byte() 589 xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_dataptr() 598 xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() [all …]
|
D | xfs_ialloc.h | 30 #define XFS_IALLOC_INODES(mp) (mp)->m_ialloc_inos argument 31 #define XFS_IALLOC_BLOCKS(mp) (mp)->m_ialloc_blks argument 37 #define XFS_INODE_CLUSTER_SIZE(mp) (mp)->m_inode_cluster_size argument 43 xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o) in xfs_make_iptr()
|
D | xfs_attr_remote.c | 52 struct xfs_mount *mp, in xfs_attr3_rmt_blocks() 69 struct xfs_mount *mp, in xfs_attr3_rmt_hdr_ok() 93 struct xfs_mount *mp, in xfs_attr3_rmt_verify() 123 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_read_verify() local 164 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_write_verify() local 208 struct xfs_mount *mp, in xfs_attr3_rmt_hdr_set() 235 struct xfs_mount *mp, in xfs_attr_rmtval_copyout() 282 struct xfs_mount *mp, in xfs_attr_rmtval_copyin() 337 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get() local 400 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set() local [all …]
|
D | xfs_dquot.c | 89 struct xfs_mount *mp, in xfs_qm_adjust_dqlimits() 134 xfs_mount_t *mp, in xfs_qm_adjust_dqtimers() 227 xfs_mount_t *mp, in xfs_qm_init_dquot_blk() 294 struct xfs_mount *mp, in xfs_dquot_buf_verify_crc() 327 struct xfs_mount *mp, in xfs_dquot_buf_verify() 373 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dquot_buf_read_verify() local 390 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dquot_buf_write_verify() local 411 xfs_mount_t *mp, in xfs_qm_dqalloc() 516 struct xfs_mount *mp, in xfs_qm_dqrepair() 577 xfs_mount_t *mp = dqp->q_mount; in xfs_qm_dqtobp() local [all …]
|
D | xfs_rtalloc.c | 75 xfs_mount_t *mp, /* file system mount point */ in xfs_growfs_rt_alloc() 198 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_block() 311 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_exact() 390 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_near() 585 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_size() 730 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_range() 807 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtany_summary() 852 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtbuf_get() 887 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_alloc_range() 905 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_range() [all …]
|
D | xfs_ialloc_btree.h | 75 #define XFS_IBT_BLOCK(mp) ((xfs_agblock_t)(XFS_CNT_BLOCK(mp) + 1)) argument 76 #define XFS_PREALLOC_BLOCKS(mp) ((xfs_agblock_t)(XFS_IBT_BLOCK(mp) + 1)) argument 81 #define XFS_INOBT_BLOCK_LEN(mp) \ argument 90 #define XFS_INOBT_REC_ADDR(mp, block, index) \ argument 96 #define XFS_INOBT_KEY_ADDR(mp, block, index) \ argument 102 #define XFS_INOBT_PTR_ADDR(mp, block, index, maxrecs) \ argument
|
D | xfs_quota.h | 114 #define XFS_DQUOT_LOGRES(mp) (sizeof(xfs_disk_dquot_t) * 3) argument 171 #define XFS_IS_QUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT) argument 172 #define XFS_IS_UQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_UQUOTA_ACCT) argument 173 #define XFS_IS_PQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_PQUOTA_ACCT) argument 174 #define XFS_IS_GQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_GQUOTA_ACCT) argument 175 #define XFS_IS_UQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_UQUOTA_ENFD) argument 176 #define XFS_IS_OQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_OQUOTA_ENFD) argument 193 #define XFS_IS_QUOTA_ON(mp) ((mp)->m_qflags & (XFS_UQUOTA_ACTIVE | \ argument 196 #define XFS_IS_OQUOTA_ON(mp) ((mp)->m_qflags & (XFS_GQUOTA_ACTIVE | \ argument 198 #define XFS_IS_UQUOTA_ON(mp) ((mp)->m_qflags & XFS_UQUOTA_ACTIVE) argument [all …]
|
D | xfs_ag.h | 124 #define XFS_AGF_DADDR(mp) ((xfs_daddr_t)(1 << (mp)->m_sectbb_log)) argument 125 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument 187 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument 188 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument 200 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument 201 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument 204 #define XFS_BUF_TO_AGFL_BNO(mp, bp) \ argument 214 #define XFS_AGFL_SIZE(mp) \ argument 290 #define XFS_AG_MAXLEVELS(mp) ((mp)->m_ag_maxlevels) argument 291 #define XFS_MIN_FREELIST_RAW(bl,cl,mp) \ argument [all …]
|
D | xfs_quotaops.c | 49 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_xstate() local 62 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_xstate() local 103 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_dqblk() local 120 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_dqblk() local
|
/fs/jfs/ |
D | jfs_metapage.c | 44 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument 45 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument 47 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() 53 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() 73 static inline void lock_metapage(struct metapage *mp) in lock_metapage() 90 struct metapage *mp[MPS_PER_PAGE]; member 101 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() 128 static inline void remove_metapage(struct page *page, struct metapage *mp) in remove_metapage() 164 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() 174 static inline void remove_metapage(struct page *page, struct metapage *mp) in remove_metapage() [all …]
|
D | jfs_metapage.h | 58 #define mark_metapage_dirty(mp) set_bit(META_dirty, &(mp)->flag) argument 85 static inline void write_metapage(struct metapage *mp) in write_metapage() 91 static inline void flush_metapage(struct metapage *mp) in flush_metapage() 97 static inline void discard_metapage(struct metapage *mp) in discard_metapage() 104 static inline void metapage_nohomeok(struct metapage *mp) in metapage_nohomeok() 120 static inline void metapage_wait_for_io(struct metapage *mp) in metapage_wait_for_io() 129 static inline void _metapage_homeok(struct metapage *mp) in _metapage_homeok() 135 static inline void metapage_homeok(struct metapage *mp) in metapage_homeok()
|