/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_mount.c | 55 #define xfs_icsb_balance_counter(mp, a, b) do { } while (0) argument 56 #define xfs_icsb_balance_counter_locked(mp, a, b) do { } while (0) argument 124 struct xfs_mount *mp) in xfs_uuid_mount() 167 struct xfs_mount *mp) in xfs_uuid_unmount() 195 xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_perag_get() 216 struct xfs_mount *mp, in xfs_perag_get_tag() 262 xfs_mount_t *mp) in xfs_free_perag() 304 xfs_mount_t *mp, in xfs_mount_validate_sb() 439 xfs_mount_t *mp, in xfs_initialize_perag() 556 struct xfs_mount *mp, in xfs_sb_from_disk() [all …]
|
D | xfs_inum.h | 37 #define XFS_INO_OFFSET_BITS(mp) (mp)->m_sb.sb_inopblog argument 38 #define XFS_INO_AGBNO_BITS(mp) (mp)->m_sb.sb_agblklog argument 39 #define XFS_INO_AGINO_BITS(mp) (mp)->m_agino_log argument 40 #define XFS_INO_AGNO_BITS(mp) (mp)->m_agno_log argument 41 #define XFS_INO_BITS(mp) \ argument 43 #define XFS_INO_TO_AGNO(mp,i) \ argument 45 #define XFS_INO_TO_AGINO(mp,i) \ argument 47 #define XFS_INO_TO_AGBNO(mp,i) \ argument 50 #define XFS_INO_TO_OFFSET(mp,i) \ argument 52 #define XFS_INO_TO_FSB(mp,i) \ argument [all …]
|
D | xfs_trans.c | 86 struct xfs_mount *mp) in xfs_calc_write_reservation() 118 struct xfs_mount *mp) in xfs_calc_itruncate_reservation() 149 struct xfs_mount *mp) in xfs_calc_rename_reservation() 176 struct xfs_mount *mp) in xfs_calc_link_reservation() 204 struct xfs_mount *mp) in xfs_calc_remove_reservation() 234 struct xfs_mount *mp) in xfs_calc_symlink_reservation() 268 struct xfs_mount *mp) in xfs_calc_create_reservation() 290 struct xfs_mount *mp) in xfs_calc_mkdir_reservation() 307 struct xfs_mount *mp) in xfs_calc_ifree_reservation() 328 struct xfs_mount *mp) in xfs_calc_ichange_reservation() [all …]
|
D | xfs_sync.c | 102 struct xfs_mount *mp, in xfs_inode_ag_walk() 195 struct xfs_mount *mp, in xfs_inode_ag_iterator() 288 struct xfs_mount *mp, in xfs_sync_data() 308 struct xfs_mount *mp, in xfs_sync_attr() 318 struct xfs_mount *mp) in xfs_sync_fsdata() 358 struct xfs_mount *mp) in xfs_quiesce_data() 384 struct xfs_mount *mp) in xfs_quiesce_fs() 416 struct xfs_mount *mp) in xfs_quiesce_attr() 444 struct xfs_mount *mp) in xfs_syncd_queue_sync() 459 struct xfs_mount *mp = container_of(to_delayed_work(work), in xfs_sync_worker() 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_qm.c | 66 struct xfs_mount *mp, in xfs_qm_dquot_walk() 134 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge() local 225 struct xfs_mount *mp, in xfs_qm_dqpurge_all() 241 struct xfs_mount *mp) in xfs_qm_unmount() 261 xfs_mount_t *mp) in xfs_qm_mount_quotas() 346 xfs_mount_t *mp) in xfs_qm_unmount_quotas() 499 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked() local 617 xfs_mount_t *mp) in xfs_qm_init_quotainfo() 724 xfs_mount_t *mp) in xfs_qm_destroy_quotainfo() 752 xfs_mount_t *mp, in xfs_qm_qino_alloc() [all …]
|
D | xfs_fsops.c | 52 xfs_mount_t *mp, in xfs_fs_geometry() 120 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_data_private() 441 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_log_private() 470 xfs_mount_t *mp, in xfs_growfs_data() 486 xfs_mount_t *mp, in xfs_growfs_log() 506 xfs_mount_t *mp, in xfs_fs_counts() 536 xfs_mount_t *mp, in xfs_reserve_blocks() 648 xfs_mount_t *mp) in xfs_fs_log_dummy() 669 xfs_mount_t *mp, in xfs_fs_goingdown()
|
D | xfs_super.c | 166 struct xfs_mount *mp, in xfs_parseargs() 481 struct xfs_mount *mp, in xfs_showargs() 597 xfs_mount_t *mp, in xfs_blkdev_get() 630 struct xfs_mount *mp) in xfs_close_devices() 657 struct xfs_mount *mp) in xfs_open_devices() 731 struct xfs_mount *mp) in xfs_setup_devices() 764 struct xfs_mount *mp) in xfs_init_mount_workqueues() 786 struct xfs_mount *mp) in xfs_destroy_mount_workqueues() 883 struct xfs_mount *mp = ip->i_mount; in xfs_fs_dirty_inode() local 971 struct xfs_mount *mp) in xfs_free_fsname() [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 xfs_mount_t *mp, in xfs_qm_scall_setqlim() 631 xfs_mount_t *mp, in xfs_qm_log_quotaoff_end() 664 xfs_mount_t *mp, in xfs_qm_log_quotaoff() 719 struct xfs_mount *mp, in xfs_qm_scall_getquota() 881 struct xfs_mount *mp, in xfs_qm_dqrele_all_inodes()
|
D | xfs_dir2_format.h | 194 #define XFS_DIR2_DATA_FIRSTDB(mp) \ argument 320 #define XFS_DIR2_LEAF_FIRSTDB(mp) \ argument 359 static inline int xfs_dir2_max_leaf_ents(struct xfs_mount *mp) in xfs_dir2_max_leaf_ents() 369 xfs_dir2_leaf_tail_p(struct xfs_mount *mp, struct xfs_dir2_leaf *lp) in xfs_dir2_leaf_tail_p() 389 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_byte() 398 xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_dataptr() 407 xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() 417 xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() 426 xfs_dir2_byte_to_off(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() 436 xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() [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_alloc_btree.h | 71 #define XFS_BNO_BLOCK(mp) ((xfs_agblock_t)(XFS_AGFL_BLOCK(mp) + 1)) argument 72 #define XFS_CNT_BLOCK(mp) ((xfs_agblock_t)(XFS_BNO_BLOCK(mp) + 1)) argument 79 #define XFS_ALLOC_BLOCK_LEN(mp) XFS_BTREE_SBLOCK_LEN argument 86 #define XFS_ALLOC_REC_ADDR(mp, block, index) \ argument 92 #define XFS_ALLOC_KEY_ADDR(mp, block, index) \ argument 98 #define XFS_ALLOC_PTR_ADDR(mp, block, index, maxrecs) \ argument
|
D | xfs_trans.h | 213 #define XFS_ALLOCFREE_LOG_RES(mp,nx) \ argument 215 #define XFS_ALLOCFREE_LOG_COUNT(mp,nx) \ argument 225 #define XFS_DIROP_LOG_RES(mp) \ argument 228 #define XFS_DIROP_LOG_COUNT(mp) \ argument 233 #define XFS_WRITE_LOG_RES(mp) ((mp)->m_reservations.tr_write) argument 234 #define XFS_ITRUNCATE_LOG_RES(mp) ((mp)->m_reservations.tr_itruncate) argument 235 #define XFS_RENAME_LOG_RES(mp) ((mp)->m_reservations.tr_rename) argument 236 #define XFS_LINK_LOG_RES(mp) ((mp)->m_reservations.tr_link) argument 237 #define XFS_REMOVE_LOG_RES(mp) ((mp)->m_reservations.tr_remove) argument 238 #define XFS_SYMLINK_LOG_RES(mp) ((mp)->m_reservations.tr_symlink) argument [all …]
|
D | xfs_ag.h | 104 #define XFS_AGF_DADDR(mp) ((xfs_daddr_t)(1 << (mp)->m_sectbb_log)) argument 105 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument 157 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument 158 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument 168 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument 169 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument 170 #define XFS_AGFL_SIZE(mp) ((mp)->m_sb.sb_sectsize / sizeof(xfs_agblock_t)) argument 255 #define XFS_AG_MAXLEVELS(mp) ((mp)->m_ag_maxlevels) argument 256 #define XFS_MIN_FREELIST_RAW(bl,cl,mp) \ argument 258 #define XFS_MIN_FREELIST(a,mp) \ argument [all …]
|
D | xfs_quota.h | 105 #define XFS_DQUOT_LOGRES(mp) (sizeof(xfs_disk_dquot_t) * 3) argument 162 #define XFS_IS_QUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT) argument 163 #define XFS_IS_UQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_UQUOTA_ACCT) argument 164 #define XFS_IS_PQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_PQUOTA_ACCT) argument 165 #define XFS_IS_GQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_GQUOTA_ACCT) argument 166 #define XFS_IS_UQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_UQUOTA_ENFD) argument 167 #define XFS_IS_OQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_OQUOTA_ENFD) argument 184 #define XFS_IS_QUOTA_ON(mp) ((mp)->m_qflags & (XFS_UQUOTA_ACTIVE | \ argument 187 #define XFS_IS_OQUOTA_ON(mp) ((mp)->m_qflags & (XFS_GQUOTA_ACTIVE | \ argument 189 #define XFS_IS_UQUOTA_ON(mp) ((mp)->m_qflags & XFS_UQUOTA_ACTIVE) argument [all …]
|
D | xfs_ialloc_btree.h | 74 #define XFS_IBT_BLOCK(mp) ((xfs_agblock_t)(XFS_CNT_BLOCK(mp) + 1)) argument 75 #define XFS_PREALLOC_BLOCKS(mp) ((xfs_agblock_t)(XFS_IBT_BLOCK(mp) + 1)) argument 82 #define XFS_INOBT_BLOCK_LEN(mp) XFS_BTREE_SBLOCK_LEN argument 89 #define XFS_INOBT_REC_ADDR(mp, block, index) \ argument 95 #define XFS_INOBT_KEY_ADDR(mp, block, index) \ argument 101 #define XFS_INOBT_PTR_ADDR(mp, block, index, maxrecs) \ argument
|
D | xfs_rtalloc.c | 76 xfs_mount_t *mp, /* file system mount point */ in xfs_growfs_rt_alloc() 199 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_block() 312 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_exact() 391 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_near() 586 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_size() 731 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_range() 808 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtany_summary() 853 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtbuf_get() 888 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_alloc_range() 906 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_range() [all …]
|
D | xfs_quotaops.c | 50 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_xstate() local 63 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_xstate() local 105 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_dqblk() local 122 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_dqblk() local
|
D | xfs_dquot.c | 89 xfs_mount_t *mp, in xfs_qm_adjust_dqlimits() 125 xfs_mount_t *mp, in xfs_qm_adjust_dqtimers() 218 xfs_mount_t *mp, in xfs_qm_init_dquot_blk() 261 xfs_mount_t *mp, in xfs_qm_dqalloc() 381 xfs_mount_t *mp = dqp->q_mount; in xfs_qm_dqtobp() local 483 struct xfs_mount *mp, in xfs_qm_dqread() 616 xfs_mount_t *mp, in xfs_qm_dqget() 884 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqflush() local 1022 xfs_mount_t *mp = dqp->q_mount; in xfs_dqflock_pushbuf_wait() local
|
D | xfs_vnodeops.c | 65 xfs_mount_t *mp = ip->i_mount; in xfs_readlink_bmap() local 114 xfs_mount_t *mp = ip->i_mount; in xfs_readlink() local 163 xfs_mount_t *mp, in xfs_free_eofblocks() 270 xfs_mount_t *mp; in xfs_inactive_symlink_rmt() local 461 xfs_mount_t *mp; in xfs_inactive_attrs() local 506 xfs_mount_t *mp = ip->i_mount; in xfs_release() local 608 xfs_mount_t *mp; in xfs_inactive() local 843 struct xfs_mount *mp = dp->i_mount; in xfs_create() local 1215 xfs_mount_t *mp = dp->i_mount; in xfs_remove() local 1379 xfs_mount_t *mp = tdp->i_mount; in xfs_link() local [all …]
|
D | xfs_iomap.c | 49 #define XFS_WRITEIO_ALIGN(mp,off) (((off) >> mp->m_writeio_log) \ argument 55 xfs_mount_t *mp, in xfs_iomap_eof_align_last_fsb() 129 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_direct() local 275 xfs_mount_t *mp, in xfs_iomap_eof_want_preallocate() 330 struct xfs_mount *mp, in xfs_iomap_prealloc_size() 378 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_delay() local 484 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_allocate() local 640 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_unwritten() 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()
|