/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 | 63 #define xfs_icsb_balance_counter(mp, a, b) do { } while (0) argument 64 #define xfs_icsb_balance_counter_locked(mp, a, b) do { } while (0) argument 65 #define xfs_icsb_modify_counters(mp, a, b, c) do { } while (0) argument 131 xfs_mount_t *mp) in xfs_free_perag() 170 xfs_mount_t *mp, in xfs_mount_validate_sb() 296 xfs_mount_t *mp, in xfs_initialize_perag() 472 xfs_readsb(xfs_mount_t *mp, int flags) in xfs_readsb() 567 xfs_mount_common(xfs_mount_t *mp, xfs_sb_t *sbp) in xfs_mount_common() 633 xfs_initialize_perag_data(xfs_mount_t *mp, xfs_agnumber_t agcount) in xfs_initialize_perag_data() 684 xfs_update_alignment(xfs_mount_t *mp) in xfs_update_alignment() [all …]
|
D | xfs_inum.h | 48 #define XFS_INO_OFFSET_BITS(mp) (mp)->m_sb.sb_inopblog argument 49 #define XFS_INO_AGBNO_BITS(mp) (mp)->m_sb.sb_agblklog argument 50 #define XFS_INO_AGINO_BITS(mp) (mp)->m_agino_log argument 51 #define XFS_INO_AGNO_BITS(mp) (mp)->m_agno_log argument 52 #define XFS_INO_BITS(mp) \ argument 54 #define XFS_INO_TO_AGNO(mp,i) \ argument 56 #define XFS_INO_TO_AGINO(mp,i) \ argument 58 #define XFS_INO_TO_AGBNO(mp,i) \ argument 61 #define XFS_INO_TO_OFFSET(mp,i) \ argument 63 #define XFS_INO_TO_FSB(mp,i) \ argument [all …]
|
D | xfs_trans.c | 66 xfs_calc_write_reservation(xfs_mount_t *mp) in xfs_calc_write_reservation() 72 xfs_calc_itruncate_reservation(xfs_mount_t *mp) in xfs_calc_itruncate_reservation() 78 xfs_calc_rename_reservation(xfs_mount_t *mp) in xfs_calc_rename_reservation() 84 xfs_calc_link_reservation(xfs_mount_t *mp) in xfs_calc_link_reservation() 90 xfs_calc_remove_reservation(xfs_mount_t *mp) in xfs_calc_remove_reservation() 96 xfs_calc_symlink_reservation(xfs_mount_t *mp) in xfs_calc_symlink_reservation() 102 xfs_calc_create_reservation(xfs_mount_t *mp) in xfs_calc_create_reservation() 108 xfs_calc_mkdir_reservation(xfs_mount_t *mp) in xfs_calc_mkdir_reservation() 114 xfs_calc_ifree_reservation(xfs_mount_t *mp) in xfs_calc_ifree_reservation() 120 xfs_calc_ichange_reservation(xfs_mount_t *mp) in xfs_calc_ichange_reservation() [all …]
|
D | xfs_dir2_leaf.h | 34 #define XFS_DIR2_LEAF_FIRSTDB(mp) \ argument 85 static inline int xfs_dir2_max_leaf_ents(struct xfs_mount *mp) in xfs_dir2_max_leaf_ents() 95 xfs_dir2_leaf_tail_p(struct xfs_mount *mp, xfs_dir2_leaf_t *lp) in xfs_dir2_leaf_tail_p() 115 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_byte() 124 xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_dataptr() 133 xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() 143 xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() 152 xfs_dir2_byte_to_off(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() 162 xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() 171 xfs_dir2_db_off_to_byte(struct xfs_mount *mp, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() [all …]
|
D | xfs_filestream.c | 44 xfs_mount_t *mp, /* mount point */ in xfs_filestreams_trace() 69 #define TRACE0(mp,t) TRACE6(mp,t,0,0,0,0,0,0) argument 70 #define TRACE1(mp,t,a0) TRACE6(mp,t,a0,0,0,0,0,0) argument 71 #define TRACE2(mp,t,a0,a1) TRACE6(mp,t,a0,a1,0,0,0,0) argument 72 #define TRACE3(mp,t,a0,a1,a2) TRACE6(mp,t,a0,a1,a2,0,0,0) argument 73 #define TRACE4(mp,t,a0,a1,a2,a3) TRACE6(mp,t,a0,a1,a2,a3,0,0) argument 74 #define TRACE5(mp,t,a0,a1,a2,a3,a4) TRACE6(mp,t,a0,a1,a2,a3,a4,0) argument 75 #define TRACE6(mp,t,a0,a1,a2,a3,a4,a5) \ argument 81 #define TRACE_AG_SCAN(mp, ag, ag2) \ argument 83 #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 | 55 xfs_mount_t *mp, in xfs_fs_geometry() 120 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_data_private() 405 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_log_private() 434 xfs_mount_t *mp, in xfs_growfs_data() 450 xfs_mount_t *mp, in xfs_growfs_log() 470 xfs_mount_t *mp, in xfs_fs_counts() 500 xfs_mount_t *mp, in xfs_reserve_blocks() 600 xfs_mount_t *mp) in xfs_fs_log_dummy() 628 xfs_mount_t *mp, in xfs_fs_goingdown()
|
D | xfs_trans.h | 272 #define XFS_ALLOCFREE_LOG_RES(mp,nx) \ argument 274 #define XFS_ALLOCFREE_LOG_COUNT(mp,nx) \ argument 284 #define XFS_DIROP_LOG_RES(mp) \ argument 287 #define XFS_DIROP_LOG_COUNT(mp) \ argument 305 #define XFS_CALC_WRITE_LOG_RES(mp) \ argument 319 #define XFS_WRITE_LOG_RES(mp) ((mp)->m_reservations.tr_write) argument 334 #define XFS_CALC_ITRUNCATE_LOG_RES(mp) \ argument 349 #define XFS_ITRUNCATE_LOG_RES(mp) ((mp)->m_reservations.tr_itruncate) argument 363 #define XFS_CALC_RENAME_LOG_RES(mp) \ argument 374 #define XFS_RENAME_LOG_RES(mp) ((mp)->m_reservations.tr_rename) argument [all …]
|
D | xfs_quota.h | 97 #define XFS_DQUOT_LOGRES(mp) (sizeof(xfs_disk_dquot_t) * 3) argument 154 #define XFS_IS_QUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT) argument 155 #define XFS_IS_UQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_UQUOTA_ACCT) argument 156 #define XFS_IS_PQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_PQUOTA_ACCT) argument 157 #define XFS_IS_GQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_GQUOTA_ACCT) argument 158 #define XFS_IS_UQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_UQUOTA_ENFD) argument 159 #define XFS_IS_OQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_OQUOTA_ENFD) argument 174 #define XFS_IS_QUOTA_ON(mp) ((mp)->m_qflags & (XFS_UQUOTA_ACTIVE | \ argument 177 #define XFS_IS_OQUOTA_ON(mp) ((mp)->m_qflags & (XFS_GQUOTA_ACTIVE | \ argument 179 #define XFS_IS_UQUOTA_ON(mp) ((mp)->m_qflags & XFS_UQUOTA_ACTIVE) argument [all …]
|
D | xfs_mount.h | 47 #define xfs_daddr_to_agno(mp,d) \ argument 49 #define xfs_daddr_to_agbno(mp,d) \ argument 94 #define XFS_SEND_DATA(mp, ev,ip,off,len,fl,lock) \ argument 96 #define XFS_SEND_MMAP(mp, vma,fl) \ argument 98 #define XFS_SEND_DESTROY(mp, ip,right) \ argument 100 #define XFS_SEND_NAMESP(mp, ev,b1,r1,b2,r2,n1,n2,mode,rval,fl) \ argument 102 #define XFS_SEND_PREUNMOUNT(mp,b1,r1,b2,r2,n1,n2,mode,rval,fl) \ argument 104 #define XFS_SEND_MOUNT(mp,right,path,name) \ argument 106 #define XFS_SEND_UNMOUNT(mp, ip,right,mode,rval,fl) \ argument 161 #define XFS_QM_INIT(mp, mnt, fl) \ argument [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_rw.c | 57 xfs_mount_t *mp; in xfs_write_clear_setuid() local 96 xfs_mount_t *mp, in xfs_write_sync_logforce() 183 xfs_mount_t *mp, in xfs_do_force_shutdown() 330 struct xfs_mount *mp, in xfs_ioerror_alert() 355 struct xfs_mount *mp, in xfs_read_buf() 400 struct xfs_mount *mp, in xfs_bwrite()
|
D | xfs_ag.h | 90 #define XFS_AGF_DADDR(mp) ((xfs_daddr_t)(1 << (mp)->m_sectbb_log)) argument 91 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument 143 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument 144 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument 154 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument 155 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument 156 #define XFS_AGFL_SIZE(mp) ((mp)->m_sb.sb_sectsize / sizeof(xfs_agblock_t)) argument 217 #define XFS_AG_MAXLEVELS(mp) ((mp)->m_ag_maxlevels) argument 218 #define XFS_MIN_FREELIST_RAW(bl,cl,mp) \ argument 220 #define XFS_MIN_FREELIST(a,mp) \ argument [all …]
|
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_ialloc_btree.h | 83 #define XFS_IN_MAXLEVELS(mp) ((mp)->m_in_maxlevels) argument 88 #define XFS_IBT_BLOCK(mp) ((xfs_agblock_t)(XFS_CNT_BLOCK(mp) + 1)) argument 89 #define XFS_PREALLOC_BLOCKS(mp) ((xfs_agblock_t)(XFS_IBT_BLOCK(mp) + 1)) argument 96 #define XFS_INOBT_BLOCK_LEN(mp) XFS_BTREE_SBLOCK_LEN argument 103 #define XFS_INOBT_REC_ADDR(mp, block, index) \ argument 109 #define XFS_INOBT_KEY_ADDR(mp, block, index) \ argument 115 #define XFS_INOBT_PTR_ADDR(mp, block, index, maxrecs) \ argument
|
D | xfs_qmops.c | 47 xfs_mount_reset_sbqflags(xfs_mount_t *mp) in xfs_mount_reset_sbqflags() 87 xfs_mount_t *mp, in xfs_noquota_init() 133 xfs_qmops_get(struct xfs_mount *mp) in xfs_qmops_get() 151 xfs_qmops_put(struct xfs_mount *mp) in xfs_qmops_put()
|
D | xfs_error.c | 91 xfs_errortag_add(int error_tag, xfs_mount_t *mp) in xfs_errortag_add() 125 xfs_errortag_clearall(xfs_mount_t *mp, int loud) in xfs_errortag_clearall() 158 xfs_fs_cmn_err(int level, xfs_mount_t *mp, char *fmt, ...) in xfs_fs_cmn_err() 168 xfs_cmn_err(int panic_tag, int level, xfs_mount_t *mp, char *fmt, ...) in xfs_cmn_err() 191 xfs_mount_t *mp, in xfs_error_report() 210 xfs_mount_t *mp, in xfs_corruption_error()
|
D | xfs_rtalloc.c | 81 xfs_mount_t *mp, /* file system mount point */ in xfs_growfs_rt_alloc() 205 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_block() 318 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_exact() 397 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_near() 592 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_extent_size() 737 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_range() 814 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtany_summary() 859 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtbuf_get() 904 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_alloc_range() 922 xfs_mount_t *mp, /* file system mount point */ in xfs_rtcheck_range() [all …]
|
/fs/xfs/quota/ |
D | xfs_quota_priv.h | 28 #define XFS_QM_DQPERBLK(mp) ((mp)->m_quotainfo->qi_dqperchunk) argument 32 #define XFS_QI_MPLRECLAIMS(mp) ((mp)->m_quotainfo->qi_dqreclaims) argument 33 #define XFS_QI_UQIP(mp) ((mp)->m_quotainfo->qi_uquotaip) argument 34 #define XFS_QI_GQIP(mp) ((mp)->m_quotainfo->qi_gquotaip) argument 35 #define XFS_QI_DQCHUNKLEN(mp) ((mp)->m_quotainfo->qi_dqchunklen) argument 36 #define XFS_QI_BTIMELIMIT(mp) ((mp)->m_quotainfo->qi_btimelimit) argument 37 #define XFS_QI_RTBTIMELIMIT(mp) ((mp)->m_quotainfo->qi_rtbtimelimit) argument 38 #define XFS_QI_ITIMELIMIT(mp) ((mp)->m_quotainfo->qi_itimelimit) argument 39 #define XFS_QI_BWARNLIMIT(mp) ((mp)->m_quotainfo->qi_bwarnlimit) argument 40 #define XFS_QI_RTBWARNLIMIT(mp) ((mp)->m_quotainfo->qi_rtbwarnlimit) argument [all …]
|
D | xfs_qm_syscalls.c | 84 xfs_mount_t *mp, in xfs_qm_quotactl() 198 xfs_mount_t *mp, in xfs_qm_scall_quotaoff() 380 xfs_mount_t *mp, in xfs_qm_scall_trunc_qfiles() 421 xfs_mount_t *mp, in xfs_qm_scall_quotaon() 522 xfs_mount_t *mp, in xfs_qm_scall_getqstat() 587 xfs_mount_t *mp, in xfs_qm_scall_setqlim() 747 xfs_mount_t *mp, in xfs_qm_scall_getquota() 785 xfs_mount_t *mp, in xfs_qm_log_quotaoff_end() 818 xfs_mount_t *mp, in xfs_qm_log_quotaoff() 879 xfs_mount_t *mp, in xfs_qm_export_dquot() [all …]
|
D | xfs_qm.c | 215 struct xfs_mount *mp) in xfs_qm_hold_quotafs_ref() 245 struct xfs_mount *mp) in xfs_qm_rele_quotafs_ref() 294 xfs_mount_t *mp) in xfs_qm_unmount_quotadestroy() 312 xfs_mount_t *mp) in xfs_qm_mount_quotas() 400 xfs_mount_t *mp) in xfs_qm_unmount_quotas() 434 xfs_mount_t *mp, in xfs_qm_dqflush_all() 494 xfs_mount_t *mp) in xfs_qm_detach_gdquots() 535 xfs_mount_t *mp, in xfs_qm_dqpurge_int() 612 xfs_mount_t *mp, in xfs_qm_dqpurge_all() 835 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach() local [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_sync.c | 56 xfs_mount_t *mp, in xfs_sync_inodes_ag() 171 xfs_mount_t *mp, in xfs_sync_inodes() 204 struct xfs_mount *mp, in xfs_commit_dummy_trans() 238 struct xfs_mount *mp, in xfs_sync_fsdata() 308 struct xfs_mount *mp) in xfs_quiesce_data() 333 struct xfs_mount *mp) in xfs_quiesce_fs() 363 struct xfs_mount *mp) in xfs_quiesce_attr() 399 struct xfs_mount *mp, in xfs_syncd_queue_work() 424 struct xfs_mount *mp, in xfs_flush_inode_work() 449 struct xfs_mount *mp, in xfs_flush_device_work() [all …]
|
/fs/jfs/ |
D | jfs_metapage.c | 43 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument 44 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument 46 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() 52 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() 72 static inline void lock_metapage(struct metapage *mp) in lock_metapage() 89 struct metapage *mp[MPS_PER_PAGE]; member 100 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() 127 static inline void remove_metapage(struct page *page, struct metapage *mp) in remove_metapage() 163 static inline int insert_metapage(struct page *page, struct metapage *mp) in insert_metapage() 173 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()
|