/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_mount.c | 59 struct xfs_mount *mp) in xfs_uuid_mount() 61 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount() 65 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount() 67 if (xfs_has_nouuid(mp)) in xfs_uuid_mount() 71 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount() 98 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount() 104 struct xfs_mount *mp) in xfs_uuid_unmount() 106 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount() 109 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount() 150 struct xfs_mount *mp, in xfs_readsb() 58 xfs_uuid_mount( struct xfs_mount *mp) xfs_uuid_mount() argument 103 xfs_uuid_unmount( struct xfs_mount *mp) xfs_uuid_unmount() argument 149 xfs_readsb( struct xfs_mount *mp, int flags) xfs_readsb() argument 252 xfs_check_new_dalign( struct xfs_mount *mp, int new_dalign, bool *update_sb) xfs_check_new_dalign() argument 288 xfs_validate_new_dalign( struct xfs_mount *mp) xfs_validate_new_dalign() argument 337 xfs_update_alignment( struct xfs_mount *mp) xfs_update_alignment() argument 369 xfs_set_low_space_thresholds( struct xfs_mount *mp) xfs_set_low_space_thresholds() argument 389 xfs_check_sizes( struct xfs_mount *mp) xfs_check_sizes() argument 433 xfs_mount_reset_sbqflags( struct xfs_mount *mp) xfs_mount_reset_sbqflags() argument 452 xfs_default_resblks(xfs_mount_t *mp) xfs_default_resblks() argument 471 xfs_check_summary_counts( struct xfs_mount *mp) xfs_check_summary_counts() argument 543 xfs_unmount_check( struct xfs_mount *mp) xfs_unmount_check() argument 583 xfs_unmount_flush_inodes( struct xfs_mount *mp) xfs_unmount_flush_inodes() argument 600 xfs_mount_setup_inode_geom( struct xfs_mount *mp) xfs_mount_setup_inode_geom() argument 613 xfs_agbtree_compute_maxlevels( struct xfs_mount *mp) xfs_agbtree_compute_maxlevels() argument 634 xfs_mountfs( struct xfs_mount *mp) xfs_mountfs() argument 1053 xfs_unmountfs( struct xfs_mount *mp) xfs_unmountfs() argument 1124 xfs_fs_writable( struct xfs_mount *mp, int level) xfs_fs_writable() argument 1138 xfs_mod_freecounter( struct xfs_mount *mp, struct percpu_counter *counter, int64_t delta, bool rsvd) xfs_mod_freecounter() argument 1241 xfs_freesb( struct xfs_mount *mp) xfs_freesb() argument 1256 xfs_dev_is_read_only( struct xfs_mount *mp, char *message) xfs_dev_is_read_only() argument 1272 xfs_force_summary_recalc( struct xfs_mount *mp) xfs_force_summary_recalc() argument 1286 xfs_add_incompat_log_feature( struct xfs_mount *mp, uint32_t feature) xfs_add_incompat_log_feature() argument 1361 xfs_clear_incompat_log_features( struct xfs_mount *mp) xfs_clear_incompat_log_features() argument 1403 xfs_mod_delalloc( struct xfs_mount *mp, int64_t delta) xfs_mod_delalloc() argument [all...] |
H A D | xfs_super.c | 67 struct xfs_mount *mp, in xfs_mount_set_dax_mode() 72 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode() 75 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 76 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode() 79 mp->m_features |= XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode() 80 mp->m_features &= ~XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 179 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local 183 if (mp->m_features & xfs_infop->flag) in xfs_fs_show_options() 187 seq_printf(m, ",inode%d", xfs_has_small_inums(mp) ? 32 : 64); in xfs_fs_show_options() 189 if (xfs_has_allocsize(mp)) in xfs_fs_show_options() 66 xfs_mount_set_dax_mode( struct xfs_mount *mp, enum xfs_dax_mode mode) xfs_mount_set_dax_mode() argument 273 xfs_set_inode_alloc( struct xfs_mount *mp, xfs_agnumber_t agcount) xfs_set_inode_alloc() argument 329 xfs_setup_dax_always( struct xfs_mount *mp) xfs_setup_dax_always() argument 361 xfs_blkdev_get( xfs_mount_t *mp, const char *name, struct block_device **bdevp) xfs_blkdev_get() argument 379 xfs_shutdown_devices( struct xfs_mount *mp) xfs_shutdown_devices() argument 431 xfs_open_devices( struct xfs_mount *mp) xfs_open_devices() argument 512 xfs_setup_devices( struct xfs_mount *mp) xfs_setup_devices() argument 542 xfs_init_mount_workqueues( struct xfs_mount *mp) xfs_init_mount_workqueues() argument 597 xfs_destroy_mount_workqueues( struct xfs_mount *mp) xfs_destroy_mount_workqueues() argument 612 struct xfs_mount *mp = container_of(work, struct xfs_mount, xfs_flush_inodes_worker() local 629 xfs_flush_inodes( struct xfs_mount *mp) xfs_flush_inodes() argument 676 struct xfs_mount *mp = ip->i_mount; xfs_fs_dirty_inode() local 752 xfs_mount_free( struct xfs_mount *mp) xfs_mount_free() argument 777 struct xfs_mount *mp = XFS_M(sb); xfs_fs_sync_fs() local 828 struct xfs_mount *mp = XFS_M(dentry->d_sb); xfs_fs_statfs() local 900 xfs_save_resvblks(struct xfs_mount *mp) xfs_save_resvblks() argument 909 xfs_restore_resvblks(struct xfs_mount *mp) xfs_restore_resvblks() argument 932 struct xfs_mount *mp = XFS_M(sb); xfs_fs_freeze() local 965 struct xfs_mount *mp = XFS_M(sb); xfs_fs_unfreeze() local 989 xfs_finish_flags( struct xfs_mount *mp) xfs_finish_flags() argument 1042 xfs_init_percpu_counters( struct xfs_mount *mp) xfs_init_percpu_counters() argument 1081 xfs_reinit_percpu_counters( struct xfs_mount *mp) xfs_reinit_percpu_counters() argument 1091 xfs_destroy_percpu_counters( struct xfs_mount *mp) xfs_destroy_percpu_counters() argument 1104 xfs_inodegc_init_percpu( struct xfs_mount *mp) xfs_inodegc_init_percpu() argument 1127 xfs_inodegc_free_percpu( struct xfs_mount *mp) xfs_inodegc_free_percpu() argument 1139 struct xfs_mount *mp = XFS_M(sb); xfs_fs_put_super() local 1406 xfs_fs_validate_params( struct xfs_mount *mp) xfs_fs_validate_params() argument 1500 struct xfs_mount *mp = sb->s_fs_info; xfs_fs_fill_super() local 1788 xfs_remount_rw( struct xfs_mount *mp) xfs_remount_rw() argument 1844 xfs_remount_ro( struct xfs_mount *mp) xfs_remount_ro() argument 1922 struct xfs_mount *mp = XFS_M(fc->root->d_sb); xfs_fs_reconfigure() local 1968 struct xfs_mount *mp = fc->s_fs_info; xfs_fs_free() local 1995 struct xfs_mount *mp; xfs_init_fs_context() local [all...] |
H A D | xfs_fsops.c | 47 struct xfs_mount *mp = tp->t_mountp; in xfs_resizefs_init_new_ags() local 48 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags() 60 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags() 62 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags() 64 error = xfs_ag_init_headers(mp, id); in xfs_resizefs_init_new_ags() 87 struct xfs_mount *mp, /* mount point for filesystem */ in xfs_growfs_data_private() 103 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb); in xfs_growfs_data_private() 107 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private() 108 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private() 109 XFS_FSB_TO_BB(mp, n in xfs_growfs_data_private() 86 xfs_growfs_data_private( struct xfs_mount *mp, struct xfs_growfs_data *in) xfs_growfs_data_private() argument 234 xfs_growfs_log_private( struct xfs_mount *mp, struct xfs_growfs_log *in) xfs_growfs_log_private() argument 256 xfs_growfs_imaxpct( struct xfs_mount *mp, __u32 imaxpct) xfs_growfs_imaxpct() argument 284 xfs_growfs_data( struct xfs_mount *mp, struct xfs_growfs_data *in) xfs_growfs_data() argument 331 xfs_growfs_log( xfs_mount_t *mp, struct xfs_growfs_log *in) xfs_growfs_log() argument 351 xfs_fs_counts( xfs_mount_t *mp, xfs_fsop_counts_t *cnt) xfs_fs_counts() argument 378 xfs_reserve_blocks( xfs_mount_t *mp, uint64_t *inval, xfs_fsop_resblks_t *outval) xfs_reserve_blocks() argument 479 xfs_fs_goingdown( xfs_mount_t *mp, uint32_t inflags) xfs_fs_goingdown() argument 517 xfs_do_force_shutdown( struct xfs_mount *mp, uint32_t flags, char *fname, int lnnum) xfs_do_force_shutdown() argument 569 xfs_fs_reserve_ag_blocks( struct xfs_mount *mp) xfs_fs_reserve_ag_blocks() argument 597 xfs_fs_unreserve_ag_blocks( struct xfs_mount *mp) xfs_fs_unreserve_ag_blocks() argument [all...] |
H A D | xfs_qm.c | 36 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp); 37 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp); 52 struct xfs_mount *mp, in xfs_qm_dquot_walk() 57 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() 190 struct xfs_mount *mp) in xfs_qm_dqpurge_all() 192 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 193 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 194 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 202 struct xfs_mount *mp) in xfs_qm_unmount() 204 if (mp in xfs_qm_unmount() 51 xfs_qm_dquot_walk( struct xfs_mount *mp, xfs_dqtype_t type, int (*execute)(struct xfs_dquot *dqp, void *data), void *data) xfs_qm_dquot_walk() argument 189 xfs_qm_dqpurge_all( struct xfs_mount *mp) xfs_qm_dqpurge_all() argument 201 xfs_qm_unmount( struct xfs_mount *mp) xfs_qm_unmount() argument 214 xfs_qm_unmount_quotas( xfs_mount_t *mp) xfs_qm_unmount_quotas() argument 296 struct xfs_mount *mp = ip->i_mount; xfs_qm_need_dqattach() local 319 xfs_mount_t *mp = ip->i_mount; xfs_qm_dqattach_locked() local 549 xfs_qm_set_defquota( struct xfs_mount *mp, xfs_dqtype_t type, struct xfs_quotainfo *qinf) xfs_qm_set_defquota() argument 579 xfs_qm_init_timelimits( struct xfs_mount *mp, xfs_dqtype_t type) xfs_qm_init_timelimits() argument 625 xfs_qm_init_quotainfo( struct xfs_mount *mp) xfs_qm_init_quotainfo() argument 713 xfs_qm_destroy_quotainfo( struct xfs_mount *mp) xfs_qm_destroy_quotainfo() argument 735 xfs_qm_qino_alloc( struct xfs_mount *mp, struct xfs_inode **ipp, unsigned int flags) xfs_qm_qino_alloc() argument 836 xfs_qm_reset_dqcounts( struct xfs_mount *mp, struct xfs_buf *bp, xfs_dqid_t id, xfs_dqtype_t type) xfs_qm_reset_dqcounts() argument 906 xfs_qm_reset_dqcounts_all( struct xfs_mount *mp, xfs_dqid_t firstid, xfs_fsblock_t bno, xfs_filblks_t blkcnt, xfs_dqtype_t type, struct list_head *buffer_list) xfs_qm_reset_dqcounts_all() argument 974 xfs_qm_reset_dqcounts_buf( struct xfs_mount *mp, struct xfs_inode *qip, xfs_dqtype_t type, struct list_head *buffer_list) xfs_qm_reset_dqcounts_buf() argument 1079 struct xfs_mount *mp = ip->i_mount; xfs_qm_quotacheck_dqadjust() local 1133 xfs_qm_dqusage_adjust( struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino, void *data) xfs_qm_dqusage_adjust() argument 1234 struct xfs_mount *mp = dqp->q_mount; xfs_qm_flush_one() local 1290 xfs_qm_quotacheck( xfs_mount_t *mp) xfs_qm_quotacheck() argument 1438 xfs_qm_mount_quotas( struct xfs_mount *mp) xfs_qm_mount_quotas() argument 1526 xfs_qm_init_quotainos( xfs_mount_t *mp) xfs_qm_init_quotainos() argument 1636 struct xfs_mount *mp = dqp->q_mount; xfs_qm_dqfree_one() local 1672 struct xfs_mount *mp = ip->i_mount; xfs_qm_vop_dqalloc() local 1862 struct xfs_mount *mp = i_tab[0]->i_mount; xfs_qm_vop_rename_dqattach() local 1894 struct xfs_mount *mp = tp->t_mountp; xfs_qm_vop_create_dqattach() local [all...] |
H A D | xfs_rtalloc.c | 31 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtget_summary() 39 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary() 48 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtany_summary() 62 if (mp->m_rsum_cache && low < mp->m_rsum_cache[bbno]) in xfs_rtany_summary() 63 low = mp->m_rsum_cache[bbno]; in xfs_rtany_summary() 72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 90 if (mp->m_rsum_cache && log > mp->m_rsum_cache[bbno]) in xfs_rtany_summary() 91 mp in xfs_rtany_summary() 30 xfs_rtget_summary( xfs_mount_t *mp, xfs_trans_t *tp, int log, xfs_rtblock_t bbno, struct xfs_buf **rbpp, xfs_fsblock_t *rsb, xfs_suminfo_t *sum) xfs_rtget_summary() argument 47 xfs_rtany_summary( xfs_mount_t *mp, xfs_trans_t *tp, int low, int high, xfs_rtblock_t bbno, struct xfs_buf **rbpp, xfs_fsblock_t *rsb, int *stat) xfs_rtany_summary() argument 142 xfs_rtallocate_range( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t start, xfs_extlen_t len, struct xfs_buf **rbpp, xfs_fsblock_t *rsb) xfs_rtallocate_range() argument 219 xfs_rtallocate_clamp_len( struct xfs_mount *mp, xfs_rtblock_t startrtx, xfs_extlen_t rtxlen, xfs_extlen_t prod) xfs_rtallocate_clamp_len() argument 238 xfs_rtallocate_extent_block( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bbno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_rtblock_t *nextp, struct xfs_buf **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_block() argument 358 xfs_rtallocate_extent_exact( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, struct xfs_buf **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_exact() argument 438 xfs_rtallocate_extent_near( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, struct xfs_buf **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_near() argument 643 xfs_rtallocate_extent_size( xfs_mount_t *mp, xfs_trans_t *tp, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, struct xfs_buf **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_size() argument 788 xfs_growfs_rt_alloc( struct xfs_mount *mp, xfs_extlen_t oblocks, xfs_extlen_t nblocks, struct xfs_inode *ip) xfs_growfs_rt_alloc() argument 905 xfs_alloc_rsum_cache( xfs_mount_t *mp, xfs_extlen_t rbmblocks) xfs_alloc_rsum_cache() argument 927 xfs_growfs_rt( xfs_mount_t *mp, xfs_growfs_rt_t *in) xfs_growfs_rt() argument 1206 xfs_mount_t *mp = tp->t_mountp; xfs_rtallocate_extent() local 1268 xfs_rtmount_init( struct xfs_mount *mp) xfs_rtmount_init() argument 1312 xfs_rtalloc_count_frextent( struct xfs_mount *mp, struct xfs_trans *tp, const struct xfs_rtalloc_rec *rec, void *priv) xfs_rtalloc_count_frextent() argument 1329 xfs_rtalloc_reinit_frextents( struct xfs_mount *mp) xfs_rtalloc_reinit_frextents() argument 1389 xfs_rtmount_inodes( xfs_mount_t *mp) xfs_rtmount_inodes() argument 1425 xfs_rtunmount_inodes( struct xfs_mount *mp) xfs_rtunmount_inodes() argument 1443 xfs_rtpick_extent( xfs_mount_t *mp, xfs_trans_t *tp, xfs_extlen_t len, xfs_rtblock_t *pick) xfs_rtpick_extent() argument [all...] |
H A D | xfs_qm_syscalls.c | 24 xfs_mount_t *mp, in xfs_qm_scall_quotaoff() 32 if ((mp->m_qflags & flags) == 0) in xfs_qm_scall_quotaoff() 40 xfs_info(mp, "disabling of quota accounting not supported."); in xfs_qm_scall_quotaoff() 42 mutex_lock(&mp->m_quotainfo->qi_quotaofflock); in xfs_qm_scall_quotaoff() 43 mp->m_qflags &= ~(flags & XFS_ALL_QUOTA_ENFD); in xfs_qm_scall_quotaoff() 44 spin_lock(&mp->m_sb_lock); in xfs_qm_scall_quotaoff() 45 mp->m_sb.sb_qflags = mp->m_qflags; in xfs_qm_scall_quotaoff() 46 spin_unlock(&mp->m_sb_lock); in xfs_qm_scall_quotaoff() 47 mutex_unlock(&mp in xfs_qm_scall_quotaoff() 23 xfs_qm_scall_quotaoff( xfs_mount_t *mp, uint flags) xfs_qm_scall_quotaoff() argument 54 xfs_qm_scall_trunc_qfile( struct xfs_mount *mp, xfs_ino_t ino) xfs_qm_scall_trunc_qfile() argument 102 xfs_qm_scall_trunc_qfiles( xfs_mount_t *mp, uint flags) xfs_qm_scall_trunc_qfiles() argument 137 xfs_qm_scall_quotaon( xfs_mount_t *mp, uint flags) xfs_qm_scall_quotaon() argument 227 xfs_setqlim_limits( struct xfs_mount *mp, struct xfs_dquot_res *res, struct xfs_quota_limits *qlim, xfs_qcnt_t hard, xfs_qcnt_t soft, const char *tag) xfs_setqlim_limits() argument 253 xfs_setqlim_timer( struct xfs_mount *mp, struct xfs_dquot_res *res, struct xfs_quota_limits *qlim, s64 timer) xfs_setqlim_timer() argument 273 xfs_qm_scall_setqlim( struct xfs_mount *mp, xfs_dqid_t id, xfs_dqtype_t type, struct qc_dqblk *newlim) xfs_qm_scall_setqlim() argument 398 xfs_qm_scall_getquota_fill_qc( struct xfs_mount *mp, xfs_dqtype_t type, const struct xfs_dquot *dqp, struct qc_dqblk *dst) xfs_qm_scall_getquota_fill_qc() argument 448 xfs_qm_scall_getquota( struct xfs_mount *mp, xfs_dqid_t id, xfs_dqtype_t type, struct qc_dqblk *dst) xfs_qm_scall_getquota() argument 493 xfs_qm_scall_getquota_next( struct xfs_mount *mp, xfs_dqid_t *id, xfs_dqtype_t type, struct qc_dqblk *dst) xfs_qm_scall_getquota_next() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_trans_space.h | 14 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) \ 15 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0])) 18 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) 21 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ 22 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \ 23 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \ 24 XFS_RMAPADD_SPACE_RES(mp)) 26 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ [all...] |
H A D | xfs_trans_resv.c | 68 struct xfs_mount *mp, in xfs_allocfree_log_count() 73 blocks = num_ops * 2 * (2 * mp->m_ag_maxlevels - 1); in xfs_allocfree_log_count() 74 if (xfs_sb_version_hasrmapbt(&mp->m_sb)) in xfs_allocfree_log_count() 75 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_log_count() 76 if (xfs_sb_version_hasreflink(&mp->m_sb)) in xfs_allocfree_log_count() 77 blocks += num_ops * (2 * mp->m_refc_maxlevels - 1); in xfs_allocfree_log_count() 113 struct xfs_mount *mp, in xfs_calc_inode_res() 119 mp->m_sb.sb_inodesize + in xfs_calc_inode_res() 120 2 * XFS_BMBT_BLOCK_LEN(mp)); in xfs_calc_inode_res() 135 struct xfs_mount *mp) in xfs_calc_inobt_res() 67 xfs_allocfree_log_count( struct xfs_mount *mp, uint num_ops) xfs_allocfree_log_count() argument 112 xfs_calc_inode_res( struct xfs_mount *mp, uint ninodes) xfs_calc_inode_res() argument 134 xfs_calc_inobt_res( struct xfs_mount *mp) xfs_calc_inobt_res() argument 155 xfs_calc_finobt_res( struct xfs_mount *mp) xfs_calc_finobt_res() argument 180 xfs_calc_inode_chunk_res( struct xfs_mount *mp, bool alloc) xfs_calc_inode_chunk_res() argument 206 xfs_rtalloc_log_count( struct xfs_mount *mp, unsigned int num_ops) xfs_rtalloc_log_count() argument 260 xfs_calc_write_reservation( struct xfs_mount *mp) xfs_calc_write_reservation() argument 308 xfs_calc_itruncate_reservation( struct xfs_mount *mp) xfs_calc_itruncate_reservation() argument 344 xfs_calc_rename_reservation( struct xfs_mount *mp) xfs_calc_rename_reservation() argument 363 xfs_calc_iunlink_remove_reservation( struct xfs_mount *mp) xfs_calc_iunlink_remove_reservation() argument 383 xfs_calc_link_reservation( struct xfs_mount *mp) xfs_calc_link_reservation() argument 402 xfs_calc_iunlink_add_reservation(xfs_mount_t *mp) xfs_calc_iunlink_add_reservation() argument 421 xfs_calc_remove_reservation( struct xfs_mount *mp) xfs_calc_remove_reservation() argument 451 xfs_calc_create_resv_modify( struct xfs_mount *mp) xfs_calc_create_resv_modify() argument 470 xfs_calc_icreate_resv_alloc( struct xfs_mount *mp) xfs_calc_icreate_resv_alloc() argument 481 xfs_calc_icreate_reservation(xfs_mount_t *mp) xfs_calc_icreate_reservation() argument 489 xfs_calc_create_tmpfile_reservation( struct xfs_mount *mp) xfs_calc_create_tmpfile_reservation() argument 502 xfs_calc_mkdir_reservation( struct xfs_mount *mp) xfs_calc_mkdir_reservation() argument 515 xfs_calc_symlink_reservation( struct xfs_mount *mp) xfs_calc_symlink_reservation() argument 538 xfs_calc_ifree_reservation( struct xfs_mount *mp) xfs_calc_ifree_reservation() argument 555 xfs_calc_ichange_reservation( struct xfs_mount *mp) xfs_calc_ichange_reservation() argument 571 xfs_calc_growdata_reservation( struct xfs_mount *mp) xfs_calc_growdata_reservation() argument 590 xfs_calc_growrtalloc_reservation( struct xfs_mount *mp) xfs_calc_growrtalloc_reservation() argument 607 xfs_calc_growrtzero_reservation( struct xfs_mount *mp) xfs_calc_growrtzero_reservation() argument 624 xfs_calc_growrtfree_reservation( struct xfs_mount *mp) xfs_calc_growrtfree_reservation() argument 638 xfs_calc_swrite_reservation( struct xfs_mount *mp) xfs_calc_swrite_reservation() argument 649 xfs_calc_writeid_reservation( struct xfs_mount *mp) xfs_calc_writeid_reservation() argument 664 xfs_calc_addafork_reservation( struct xfs_mount *mp) xfs_calc_addafork_reservation() argument 689 xfs_calc_attrinval_reservation( struct xfs_mount *mp) xfs_calc_attrinval_reservation() argument 712 xfs_calc_attrsetm_reservation( struct xfs_mount *mp) xfs_calc_attrsetm_reservation() argument 732 xfs_calc_attrsetrt_reservation( struct xfs_mount *mp) xfs_calc_attrsetrt_reservation() argument 752 xfs_calc_attrrm_reservation( struct xfs_mount *mp) xfs_calc_attrrm_reservation() argument 771 xfs_calc_clear_agi_bucket_reservation( struct xfs_mount *mp) xfs_calc_clear_agi_bucket_reservation() argument 793 xfs_calc_qm_dqalloc_reservation( struct xfs_mount *mp) xfs_calc_qm_dqalloc_reservation() argument 807 xfs_calc_qm_quotaoff_reservation( struct xfs_mount *mp) xfs_calc_qm_quotaoff_reservation() argument 829 xfs_calc_sb_reservation( struct xfs_mount *mp) xfs_calc_sb_reservation() argument 836 xfs_trans_resv_calc( struct xfs_mount *mp, struct xfs_trans_resv *resp) xfs_trans_resv_calc() argument [all...] |
H A D | xfs_types.c | 18 struct xfs_mount *mp, in xfs_ag_block_count() 21 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count() 23 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count() 24 return mp->m_sb.sb_agblocks; in xfs_ag_block_count() 25 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count() 34 struct xfs_mount *mp, in xfs_verify_agbno() 40 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agbno() 43 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agbno() 54 struct xfs_mount *mp, in xfs_verify_fsbno() 17 xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_ag_block_count() argument 33 xfs_verify_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) xfs_verify_agbno() argument 53 xfs_verify_fsbno( struct xfs_mount *mp, xfs_fsblock_t fsbno) xfs_verify_fsbno() argument 66 xfs_agino_range( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t *first, xfs_agino_t *last) xfs_agino_range() argument 97 xfs_verify_agino( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) xfs_verify_agino() argument 114 xfs_verify_agino_or_null( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) xfs_verify_agino_or_null() argument 127 xfs_verify_ino( struct xfs_mount *mp, xfs_ino_t ino) xfs_verify_ino() argument 143 xfs_internal_inum( struct xfs_mount *mp, xfs_ino_t ino) xfs_internal_inum() argument 157 xfs_verify_dir_ino( struct xfs_mount *mp, xfs_ino_t ino) xfs_verify_dir_ino() argument 171 xfs_verify_rtbno( struct xfs_mount *mp, xfs_rtblock_t rtbno) xfs_verify_rtbno() argument 180 xfs_icount_range( struct xfs_mount *mp, unsigned long long *min, unsigned long long *max) xfs_icount_range() argument 202 xfs_verify_icount( struct xfs_mount *mp, unsigned long long icount) xfs_verify_icount() argument 214 xfs_verify_dablk( struct xfs_mount *mp, xfs_fileoff_t dabno) xfs_verify_dablk() argument [all...] |
H A D | xfs_ag.c | 28 struct xfs_mount *mp, in xfs_get_aghdr_buf() 37 error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0, &bp); in xfs_get_aghdr_buf() 50 static inline bool is_log_ag(struct xfs_mount *mp, struct aghdr_init_data *id) in is_log_ag() argument 52 return mp->m_sb.sb_logstart > 0 && in is_log_ag() 53 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag() 61 struct xfs_mount *mp, in xfs_btroot_init() 65 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init() 71 struct xfs_mount *mp, in xfs_freesp_init_recs() 78 arec = XFS_ALLOC_REC_ADDR(mp, XFS_BUF_TO_BLOC in xfs_freesp_init_recs() 27 xfs_get_aghdr_buf( struct xfs_mount *mp, xfs_daddr_t blkno, size_t numblks, struct xfs_buf **bpp, const struct xfs_buf_ops *ops) xfs_get_aghdr_buf() argument 60 xfs_btroot_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_btroot_init() argument 70 xfs_freesp_init_recs( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_freesp_init_recs() argument 127 xfs_bnoroot_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_bnoroot_init() argument 137 xfs_cntroot_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_cntroot_init() argument 150 xfs_rmaproot_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_rmaproot_init() argument 229 xfs_sbblock_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_sbblock_init() argument 241 xfs_agfblock_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_agfblock_init() argument 289 xfs_agflblock_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_agflblock_init() argument 310 xfs_agiblock_init( struct xfs_mount *mp, struct xfs_buf *bp, struct aghdr_init_data *id) xfs_agiblock_init() argument 346 xfs_ag_init_hdr( struct xfs_mount *mp, struct aghdr_init_data *id, aghdr_init_work_f work, const struct xfs_buf_ops *ops) xfs_ag_init_hdr() argument 386 xfs_ag_init_headers( struct xfs_mount *mp, struct aghdr_init_data *id) xfs_ag_init_headers() argument 492 xfs_ag_extend_space( struct xfs_mount *mp, struct xfs_trans *tp, struct aghdr_init_data *id, xfs_extlen_t len) xfs_ag_extend_space() argument 548 xfs_ag_get_geometry( struct xfs_mount *mp, xfs_agnumber_t agno, struct xfs_ag_geometry *ageo) xfs_ag_get_geometry() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_trans_space.h | 14 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) \ 15 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0])) 18 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) 28 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ 29 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \ 30 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \ 31 XFS_RMAPADD_SPACE_RES(mp)) 33 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ [all...] |
H A D | xfs_trans_resv.c | 67 struct xfs_mount *mp, in xfs_allocfree_block_count() 72 blocks = num_ops * 2 * (2 * mp->m_alloc_maxlevels - 1); in xfs_allocfree_block_count() 73 if (xfs_has_rmapbt(mp)) in xfs_allocfree_block_count() 74 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_block_count() 86 struct xfs_mount *mp, in xfs_refcountbt_block_count() 89 return num_ops * (2 * mp->m_refc_maxlevels - 1); in xfs_refcountbt_block_count() 123 struct xfs_mount *mp, in xfs_calc_inode_res() 129 mp->m_sb.sb_inodesize + in xfs_calc_inode_res() 130 2 * XFS_BMBT_BLOCK_LEN(mp)); in xfs_calc_inode_res() 145 struct xfs_mount *mp) in xfs_calc_inobt_res() 66 xfs_allocfree_block_count( struct xfs_mount *mp, uint num_ops) xfs_allocfree_block_count() argument 85 xfs_refcountbt_block_count( struct xfs_mount *mp, unsigned int num_ops) xfs_refcountbt_block_count() argument 122 xfs_calc_inode_res( struct xfs_mount *mp, uint ninodes) xfs_calc_inode_res() argument 144 xfs_calc_inobt_res( struct xfs_mount *mp) xfs_calc_inobt_res() argument 165 xfs_calc_finobt_res( struct xfs_mount *mp) xfs_calc_finobt_res() argument 190 xfs_calc_inode_chunk_res( struct xfs_mount *mp, bool alloc) xfs_calc_inode_chunk_res() argument 216 xfs_rtalloc_block_count( struct xfs_mount *mp, unsigned int num_ops) xfs_rtalloc_block_count() argument 256 xfs_calc_refcountbt_reservation( struct xfs_mount *mp, unsigned int nr_ops) xfs_calc_refcountbt_reservation() argument 293 xfs_calc_write_reservation( struct xfs_mount *mp, bool for_minlogsize) xfs_calc_write_reservation() argument 345 xfs_calc_write_reservation_minlogsize( struct xfs_mount *mp) xfs_calc_write_reservation_minlogsize() argument 373 xfs_calc_itruncate_reservation( struct xfs_mount *mp, bool for_minlogsize) xfs_calc_itruncate_reservation() argument 417 xfs_calc_itruncate_reservation_minlogsize( struct xfs_mount *mp) xfs_calc_itruncate_reservation_minlogsize() argument 436 xfs_calc_rename_reservation( struct xfs_mount *mp) xfs_calc_rename_reservation() argument 455 xfs_calc_iunlink_remove_reservation( struct xfs_mount *mp) xfs_calc_iunlink_remove_reservation() argument 475 xfs_calc_link_reservation( struct xfs_mount *mp) xfs_calc_link_reservation() argument 494 xfs_calc_iunlink_add_reservation(xfs_mount_t *mp) xfs_calc_iunlink_add_reservation() argument 513 xfs_calc_remove_reservation( struct xfs_mount *mp) xfs_calc_remove_reservation() argument 543 xfs_calc_create_resv_modify( struct xfs_mount *mp) xfs_calc_create_resv_modify() argument 562 xfs_calc_icreate_resv_alloc( struct xfs_mount *mp) xfs_calc_icreate_resv_alloc() argument 573 xfs_calc_icreate_reservation(xfs_mount_t *mp) xfs_calc_icreate_reservation() argument 581 xfs_calc_create_tmpfile_reservation( struct xfs_mount *mp) xfs_calc_create_tmpfile_reservation() argument 594 xfs_calc_mkdir_reservation( struct xfs_mount *mp) xfs_calc_mkdir_reservation() argument 607 xfs_calc_symlink_reservation( struct xfs_mount *mp) xfs_calc_symlink_reservation() argument 630 xfs_calc_ifree_reservation( struct xfs_mount *mp) xfs_calc_ifree_reservation() argument 647 xfs_calc_ichange_reservation( struct xfs_mount *mp) xfs_calc_ichange_reservation() argument 663 xfs_calc_growdata_reservation( struct xfs_mount *mp) xfs_calc_growdata_reservation() argument 682 xfs_calc_growrtalloc_reservation( struct xfs_mount *mp) xfs_calc_growrtalloc_reservation() argument 699 xfs_calc_growrtzero_reservation( struct xfs_mount *mp) xfs_calc_growrtzero_reservation() argument 716 xfs_calc_growrtfree_reservation( struct xfs_mount *mp) xfs_calc_growrtfree_reservation() argument 730 xfs_calc_swrite_reservation( struct xfs_mount *mp) xfs_calc_swrite_reservation() argument 741 xfs_calc_writeid_reservation( struct xfs_mount *mp) xfs_calc_writeid_reservation() argument 756 xfs_calc_addafork_reservation( struct xfs_mount *mp) xfs_calc_addafork_reservation() argument 781 xfs_calc_attrinval_reservation( struct xfs_mount *mp) xfs_calc_attrinval_reservation() argument 804 xfs_calc_attrsetm_reservation( struct xfs_mount *mp) xfs_calc_attrsetm_reservation() argument 824 xfs_calc_attrsetrt_reservation( struct xfs_mount *mp) xfs_calc_attrsetrt_reservation() argument 844 xfs_calc_attrrm_reservation( struct xfs_mount *mp) xfs_calc_attrrm_reservation() argument 863 xfs_calc_clear_agi_bucket_reservation( struct xfs_mount *mp) xfs_calc_clear_agi_bucket_reservation() argument 885 xfs_calc_qm_dqalloc_reservation( struct xfs_mount *mp, bool for_minlogsize) xfs_calc_qm_dqalloc_reservation() argument 895 xfs_calc_qm_dqalloc_reservation_minlogsize( struct xfs_mount *mp) xfs_calc_qm_dqalloc_reservation_minlogsize() argument 906 xfs_calc_sb_reservation( struct xfs_mount *mp) xfs_calc_sb_reservation() argument 913 xfs_trans_resv_calc( struct xfs_mount *mp, struct xfs_trans_resv *resp) xfs_trans_resv_calc() argument [all...] |
H A D | xfs_types.c | 23 struct xfs_mount *mp, in xfs_verify_agno_agbno() 29 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agno_agbno() 32 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agno_agbno() 43 struct xfs_mount *mp, in xfs_verify_fsbno() 46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() 48 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno() 50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno() 59 struct xfs_mount *mp, in xfs_verify_fsbext() 66 if (!xfs_verify_fsbno(mp, fsbn in xfs_verify_fsbext() 22 xfs_verify_agno_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) xfs_verify_agno_agbno() argument 42 xfs_verify_fsbno( struct xfs_mount *mp, xfs_fsblock_t fsbno) xfs_verify_fsbno() argument 58 xfs_verify_fsbext( struct xfs_mount *mp, xfs_fsblock_t fsbno, xfs_fsblock_t len) xfs_verify_fsbext() argument 81 xfs_verify_agno_agino( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) xfs_verify_agno_agino() argument 98 xfs_verify_ino( struct xfs_mount *mp, xfs_ino_t ino) xfs_verify_ino() argument 114 xfs_internal_inum( struct xfs_mount *mp, xfs_ino_t ino) xfs_internal_inum() argument 128 xfs_verify_dir_ino( struct xfs_mount *mp, xfs_ino_t ino) xfs_verify_dir_ino() argument 142 xfs_verify_rtbno( struct xfs_mount *mp, xfs_rtblock_t rtbno) xfs_verify_rtbno() argument 151 xfs_verify_rtext( struct xfs_mount *mp, xfs_rtblock_t rtbno, xfs_rtblock_t len) xfs_verify_rtext() argument 167 xfs_icount_range( struct xfs_mount *mp, unsigned long long *min, unsigned long long *max) xfs_icount_range() argument 186 xfs_verify_icount( struct xfs_mount *mp, unsigned long long icount) xfs_verify_icount() argument 198 xfs_verify_dablk( struct xfs_mount *mp, xfs_fileoff_t dabno) xfs_verify_dablk() argument 209 xfs_verify_fileoff( struct xfs_mount *mp, xfs_fileoff_t off) xfs_verify_fileoff() argument 218 xfs_verify_fileext( struct xfs_mount *mp, xfs_fileoff_t off, xfs_fileoff_t len) xfs_verify_fileext() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_mount.c | 56 struct xfs_mount *mp) in xfs_uuid_mount() 58 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount() 62 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount() 64 if (mp->m_flags & XFS_MOUNT_NOUUID) in xfs_uuid_mount() 68 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount() 95 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount() 101 struct xfs_mount *mp) in xfs_uuid_unmount() 103 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount() 106 if (mp->m_flags & XFS_MOUNT_NOUUID) in xfs_uuid_unmount() 137 xfs_mount_t *mp) in xfs_free_perag() 55 xfs_uuid_mount( struct xfs_mount *mp) xfs_uuid_mount() argument 100 xfs_uuid_unmount( struct xfs_mount *mp) xfs_uuid_unmount() argument 136 xfs_free_perag( xfs_mount_t *mp) xfs_free_perag() argument 173 xfs_initialize_perag( xfs_mount_t *mp, xfs_agnumber_t agcount, xfs_agnumber_t *maxagi) xfs_initialize_perag() argument 267 xfs_readsb( struct xfs_mount *mp, int flags) xfs_readsb() argument 369 xfs_check_new_dalign( struct xfs_mount *mp, int new_dalign, bool *update_sb) xfs_check_new_dalign() argument 405 xfs_validate_new_dalign( struct xfs_mount *mp) xfs_validate_new_dalign() argument 452 xfs_update_alignment( struct xfs_mount *mp) xfs_update_alignment() argument 485 xfs_set_low_space_thresholds( struct xfs_mount *mp) xfs_set_low_space_thresholds() argument 502 xfs_check_sizes( struct xfs_mount *mp) xfs_check_sizes() argument 546 xfs_mount_reset_sbqflags( struct xfs_mount *mp) xfs_mount_reset_sbqflags() argument 565 xfs_default_resblks(xfs_mount_t *mp) xfs_default_resblks() argument 584 xfs_check_summary_counts( struct xfs_mount *mp) xfs_check_summary_counts() argument 659 xfs_unmount_flush_inodes( struct xfs_mount *mp) xfs_unmount_flush_inodes() argument 685 xfs_mountfs( struct xfs_mount *mp) xfs_mountfs() argument 1096 xfs_unmountfs( struct xfs_mount *mp) xfs_unmountfs() argument 1160 xfs_fs_writable( struct xfs_mount *mp, int level) xfs_fs_writable() argument 1182 xfs_log_sbcount(xfs_mount_t *mp) xfs_log_sbcount() argument 1206 xfs_mod_fdblocks( struct xfs_mount *mp, int64_t delta, bool rsvd) xfs_mod_fdblocks() argument 1284 xfs_mod_frextents( struct xfs_mount *mp, int64_t delta) xfs_mod_frextents() argument 1305 xfs_freesb( struct xfs_mount *mp) xfs_freesb() argument 1320 xfs_dev_is_read_only( struct xfs_mount *mp, char *message) xfs_dev_is_read_only() argument 1336 xfs_force_summary_recalc( struct xfs_mount *mp) xfs_force_summary_recalc() argument 1358 xfs_mod_delalloc( struct xfs_mount *mp, int64_t delta) xfs_mod_delalloc() argument [all...] |
H A D | xfs_super.c | 58 struct xfs_mount *mp, in xfs_mount_set_dax_mode() 63 mp->m_flags &= ~(XFS_MOUNT_DAX_ALWAYS | XFS_MOUNT_DAX_NEVER); in xfs_mount_set_dax_mode() 66 mp->m_flags |= XFS_MOUNT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 67 mp->m_flags &= ~XFS_MOUNT_DAX_NEVER; in xfs_mount_set_dax_mode() 70 mp->m_flags |= XFS_MOUNT_DAX_NEVER; in xfs_mount_set_dax_mode() 71 mp->m_flags &= ~XFS_MOUNT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 170 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local 174 if (mp->m_flags & xfs_infop->flag) in xfs_fs_show_options() 179 (mp->m_flags & XFS_MOUNT_SMALL_INUMS) ? 32 : 64); in xfs_fs_show_options() 181 if (mp in xfs_fs_show_options() 57 xfs_mount_set_dax_mode( struct xfs_mount *mp, enum xfs_dax_mode mode) xfs_mount_set_dax_mode() argument 244 xfs_set_inode_alloc( struct xfs_mount *mp, xfs_agnumber_t agcount) xfs_set_inode_alloc() argument 316 xfs_blkdev_get( xfs_mount_t *mp, const char *name, struct block_device **bdevp) xfs_blkdev_get() argument 349 xfs_close_devices( struct xfs_mount *mp) xfs_close_devices() argument 385 xfs_open_devices( struct xfs_mount *mp) xfs_open_devices() argument 464 xfs_setup_devices( struct xfs_mount *mp) xfs_setup_devices() argument 494 xfs_init_mount_workqueues( struct xfs_mount *mp) xfs_init_mount_workqueues() argument 545 xfs_destroy_mount_workqueues( struct xfs_mount *mp) xfs_destroy_mount_workqueues() argument 560 struct xfs_mount *mp = container_of(work, struct xfs_mount, xfs_flush_inodes_worker() local 577 xfs_flush_inodes( struct xfs_mount *mp) xfs_flush_inodes() argument 674 struct xfs_mount *mp = ip->i_mount; xfs_fs_dirty_inode() local 746 xfs_mount_free( struct xfs_mount *mp) xfs_mount_free() argument 759 struct xfs_mount *mp = XFS_M(sb); xfs_fs_sync_fs() local 789 struct xfs_mount *mp = XFS_M(dentry->d_sb); xfs_fs_statfs() local 852 xfs_save_resvblks(struct xfs_mount *mp) xfs_save_resvblks() argument 861 xfs_restore_resvblks(struct xfs_mount *mp) xfs_restore_resvblks() argument 888 xfs_quiesce_attr( struct xfs_mount *mp) xfs_quiesce_attr() argument 917 struct xfs_mount *mp = XFS_M(sb); xfs_fs_freeze() local 939 struct xfs_mount *mp = XFS_M(sb); xfs_fs_unfreeze() local 952 xfs_finish_flags( struct xfs_mount *mp) xfs_finish_flags() argument 1016 xfs_init_percpu_counters( struct xfs_mount *mp) xfs_init_percpu_counters() argument 1049 xfs_reinit_percpu_counters( struct xfs_mount *mp) xfs_reinit_percpu_counters() argument 1058 xfs_destroy_percpu_counters( struct xfs_mount *mp) xfs_destroy_percpu_counters() argument 1073 struct xfs_mount *mp = XFS_M(sb); xfs_fs_put_super() local 1342 xfs_fc_validate_params( struct xfs_mount *mp) xfs_fc_validate_params() argument 1415 struct xfs_mount *mp = sb->s_fs_info; xfs_fc_fill_super() local 1653 xfs_remount_rw( struct xfs_mount *mp) xfs_remount_rw() argument 1715 xfs_remount_ro( struct xfs_mount *mp) xfs_remount_ro() argument 1784 struct xfs_mount *mp = XFS_M(fc->root->d_sb); xfs_fc_reconfigure() local 1832 struct xfs_mount *mp = fc->s_fs_info; xfs_fc_free() local 1854 struct xfs_mount *mp; xfs_init_fs_context() local [all...] |
H A D | xfs_fsops.c | 28 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_data_private() 42 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private() 44 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private() 46 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private() 47 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private() 48 XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL); in xfs_growfs_data_private() 54 nb_mod = do_div(new, mp->m_sb.sb_agblocks); in xfs_growfs_data_private() 58 nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private() 59 if (nb < mp in xfs_growfs_data_private() 27 xfs_growfs_data_private( xfs_mount_t *mp, xfs_growfs_data_t *in) xfs_growfs_data_private() argument 172 xfs_growfs_log_private( xfs_mount_t *mp, xfs_growfs_log_t *in) xfs_growfs_log_private() argument 194 xfs_growfs_imaxpct( struct xfs_mount *mp, __u32 imaxpct) xfs_growfs_imaxpct() argument 222 xfs_growfs_data( struct xfs_mount *mp, struct xfs_growfs_data *in) xfs_growfs_data() argument 269 xfs_growfs_log( xfs_mount_t *mp, xfs_growfs_log_t *in) xfs_growfs_log() argument 289 xfs_fs_counts( xfs_mount_t *mp, xfs_fsop_counts_t *cnt) xfs_fs_counts() argument 319 xfs_reserve_blocks( xfs_mount_t *mp, uint64_t *inval, xfs_fsop_resblks_t *outval) xfs_reserve_blocks() argument 420 xfs_fs_goingdown( xfs_mount_t *mp, uint32_t inflags) xfs_fs_goingdown() argument 456 xfs_do_force_shutdown( struct xfs_mount *mp, int flags, char *fname, int lnnum) xfs_do_force_shutdown() argument 510 xfs_fs_reserve_ag_blocks( struct xfs_mount *mp) xfs_fs_reserve_ag_blocks() argument 540 xfs_fs_unreserve_ag_blocks( struct xfs_mount *mp) xfs_fs_unreserve_ag_blocks() argument [all...] |
H A D | xfs_rtalloc.c | 31 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtget_summary() 39 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary() 48 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtany_summary() 62 if (mp->m_rsum_cache && low < mp->m_rsum_cache[bbno]) in xfs_rtany_summary() 63 low = mp->m_rsum_cache[bbno]; in xfs_rtany_summary() 72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 90 if (mp->m_rsum_cache && log > mp->m_rsum_cache[bbno]) in xfs_rtany_summary() 91 mp in xfs_rtany_summary() 30 xfs_rtget_summary( xfs_mount_t *mp, xfs_trans_t *tp, int log, xfs_rtblock_t bbno, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_suminfo_t *sum) xfs_rtget_summary() argument 47 xfs_rtany_summary( xfs_mount_t *mp, xfs_trans_t *tp, int low, int high, xfs_rtblock_t bbno, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, int *stat) xfs_rtany_summary() argument 142 xfs_rtallocate_range( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t start, xfs_extlen_t len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb) xfs_rtallocate_range() argument 221 xfs_rtallocate_extent_block( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bbno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_rtblock_t *nextp, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_block() argument 341 xfs_rtallocate_extent_exact( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_exact() argument 420 xfs_rtallocate_extent_near( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_near() argument 623 xfs_rtallocate_extent_size( xfs_mount_t *mp, xfs_trans_t *tp, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) xfs_rtallocate_extent_size() argument 767 xfs_growfs_rt_alloc( struct xfs_mount *mp, xfs_extlen_t oblocks, xfs_extlen_t nblocks, struct xfs_inode *ip) xfs_growfs_rt_alloc() argument 876 xfs_alloc_rsum_cache( xfs_mount_t *mp, xfs_extlen_t rbmblocks) xfs_alloc_rsum_cache() argument 898 xfs_growfs_rt( xfs_mount_t *mp, xfs_growfs_rt_t *in) xfs_growfs_rt() argument 1150 xfs_mount_t *mp = tp->t_mountp; xfs_rtallocate_extent() local 1212 xfs_rtmount_init( struct xfs_mount *mp) xfs_rtmount_init() argument 1260 xfs_rtmount_inodes( xfs_mount_t *mp) xfs_rtmount_inodes() argument 1283 xfs_rtunmount_inodes( struct xfs_mount *mp) xfs_rtunmount_inodes() argument 1301 xfs_rtpick_extent( xfs_mount_t *mp, xfs_trans_t *tp, xfs_extlen_t len, xfs_rtblock_t *pick) xfs_rtpick_extent() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-context.c | 30 static void pvr2_context_set_notify(struct pvr2_context *mp, int fl) in pvr2_context_set_notify() argument 35 if (!mp->notify_flag) { in pvr2_context_set_notify() 37 mp->notify_prev = pvr2_context_notify_last; in pvr2_context_set_notify() 38 mp->notify_next = NULL; in pvr2_context_set_notify() 39 pvr2_context_notify_last = mp; in pvr2_context_set_notify() 40 if (mp->notify_prev) { in pvr2_context_set_notify() 41 mp->notify_prev->notify_next = mp; in pvr2_context_set_notify() 43 pvr2_context_notify_first = mp; in pvr2_context_set_notify() 45 mp in pvr2_context_set_notify() 67 pvr2_context_destroy(struct pvr2_context *mp) pvr2_context_destroy() argument 93 pvr2_context_notify(struct pvr2_context *mp) pvr2_context_notify() argument 99 pvr2_context_check(struct pvr2_context *mp) pvr2_context_check() argument 151 struct pvr2_context *mp; pvr2_context_thread_func() local 206 struct pvr2_context *mp = NULL; pvr2_context_create() local 234 pvr2_context_reset_input_limits(struct pvr2_context *mp) pvr2_context_reset_input_limits() argument 250 pvr2_context_enter(struct pvr2_context *mp) pvr2_context_enter() argument 256 pvr2_context_exit(struct pvr2_context *mp) pvr2_context_exit() argument 267 pvr2_context_disconnect(struct pvr2_context *mp) pvr2_context_disconnect() argument 276 pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) pvr2_channel_init() argument 304 struct pvr2_context *mp = cp->mc_head; pvr2_channel_done() local [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-context.c | 30 static void pvr2_context_set_notify(struct pvr2_context *mp, int fl) in pvr2_context_set_notify() argument 35 if (!mp->notify_flag) { in pvr2_context_set_notify() 37 mp->notify_prev = pvr2_context_notify_last; in pvr2_context_set_notify() 38 mp->notify_next = NULL; in pvr2_context_set_notify() 39 pvr2_context_notify_last = mp; in pvr2_context_set_notify() 40 if (mp->notify_prev) { in pvr2_context_set_notify() 41 mp->notify_prev->notify_next = mp; in pvr2_context_set_notify() 43 pvr2_context_notify_first = mp; in pvr2_context_set_notify() 45 mp in pvr2_context_set_notify() 67 pvr2_context_destroy(struct pvr2_context *mp) pvr2_context_destroy() argument 95 struct pvr2_context *mp = ptr; pvr2_context_notify() local 101 pvr2_context_check(struct pvr2_context *mp) pvr2_context_check() argument 151 struct pvr2_context *mp; pvr2_context_thread_func() local 206 struct pvr2_context *mp = NULL; pvr2_context_create() local 234 pvr2_context_reset_input_limits(struct pvr2_context *mp) pvr2_context_reset_input_limits() argument 250 pvr2_context_enter(struct pvr2_context *mp) pvr2_context_enter() argument 256 pvr2_context_exit(struct pvr2_context *mp) pvr2_context_exit() argument 267 pvr2_context_disconnect(struct pvr2_context *mp) pvr2_context_disconnect() argument 276 pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) pvr2_channel_init() argument 304 struct pvr2_context *mp = cp->mc_head; pvr2_channel_done() local [all...] |
/kernel/uniproton/src/fs/vfs/ |
H A D | vfs_mount.c | 28 static void OsMpDeleteFromList(struct TagMountPoint *mp) in OsMpDeleteFromList() argument 32 if (g_mountPoints == mp) { in OsMpDeleteFromList() 33 g_mountPoints = mp->mNext; in OsMpDeleteFromList() 38 if (prev->mNext != mp) { in OsMpDeleteFromList() 42 prev->mNext = mp->mNext; in OsMpDeleteFromList() 84 struct TagMountPoint *mp = g_mountPoints; in OsVfsFindMp() local 98 while ((mp != NULL) && (mp->mPath != NULL)) { in OsVfsFindMp() 99 matches = OsVfsFindMpByPath(mp->mPath, path); in OsVfsFindMp() 102 bestMp = mp; in OsVfsFindMp() 130 OsVfsFreeMp(struct TagMountPoint *mp) OsVfsFreeMp() argument 149 struct TagMountPoint *mp = NULL; OsVfsMount() local 215 struct TagMountPoint *mp = NULL; OsVfsUmount() local 248 OsCloseFdsInMp(struct TagMountPoint *mp) OsCloseFdsInMp() argument 264 struct TagMountPoint *mp = NULL; OsVfsUmount2() local [all...] |
/kernel/liteos_m/components/fs/vfs/ |
H A D | vfs_mount.c | 47 static void MpDeleteFromList(struct MountPoint *mp) in MpDeleteFromList() argument 51 /* delete mp from mount list */ in MpDeleteFromList() 52 if (g_mountPoints == mp) { in MpDeleteFromList() 53 g_mountPoints = mp->mNext; in MpDeleteFromList() 56 if (prev->mNext != mp) { in MpDeleteFromList() 60 prev->mNext = mp->mNext; in MpDeleteFromList() 69 struct MountPoint *mp = g_mountPoints; in VfsMpFind() local 76 while ((mp != NULL) && (mp->mPath != NULL)) { in VfsMpFind() 77 const char *mPath = mp in VfsMpFind() 130 struct MountPoint *mp = g_mountPoints; VfsMpFind() local 174 struct MountPoint *mp = NULL; VfsMountPointInit() local 235 struct MountPoint *mp; VfsRemount() local 271 struct MountPoint *mp = NULL; mount() local 311 struct MountPoint *mp = NULL; umount() local 349 CloseFdsInMp(const struct MountPoint *mp) CloseFdsInMp() argument 366 struct MountPoint *mp = NULL; umount2() local [all...] |
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | jfs_metapage.c | 31 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) 32 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) 34 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument 36 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage() 37 wake_up(&mp->wait); in unlock_metapage() 40 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument 44 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage() 47 if (metapage_locked(mp)) { in __lock_metapage() 60 lock_metapage(struct metapage *mp) lock_metapage() argument 77 struct metapage *mp[MPS_PER_PAGE]; global() member 88 insert_metapage(struct page *page, struct metapage *mp) insert_metapage() argument 115 remove_metapage(struct page *page, struct metapage *mp) remove_metapage() argument 151 insert_metapage(struct page *page, struct metapage *mp) insert_metapage() argument 161 remove_metapage(struct page *page, struct metapage *mp) remove_metapage() argument 175 struct metapage *mp = mempool_alloc(metapage_mempool, gfp_mask); alloc_metapage() local 188 free_metapage(struct metapage *mp) free_metapage() argument 220 drop_metapage(struct page *page, struct metapage *mp) drop_metapage() argument 279 remove_from_logsync(struct metapage *mp) remove_from_logsync() argument 303 struct metapage *mp; last_write_complete() local 343 struct metapage *mp; metapage_writepage() local 530 struct metapage *mp; metapage_releasepage() local 582 struct metapage *mp = NULL; __get_metapage() local 685 grab_metapage(struct metapage * mp) grab_metapage() argument 695 force_metapage(struct metapage *mp) force_metapage() argument 710 hold_metapage(struct metapage *mp) hold_metapage() argument 715 put_metapage(struct metapage *mp) put_metapage() argument 729 release_metapage(struct metapage * mp) release_metapage() argument 772 struct metapage *mp; __invalidate_metapages() local [all...] |
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | jfs_metapage.c | 32 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) 33 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) 35 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument 37 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage() 38 wake_up(&mp->wait); in unlock_metapage() 41 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument 45 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage() 48 if (metapage_locked(mp)) { in __lock_metapage() 61 lock_metapage(struct metapage *mp) lock_metapage() argument 78 struct metapage *mp[MPS_PER_PAGE]; global() member 89 insert_metapage(struct page *page, struct metapage *mp) insert_metapage() argument 116 remove_metapage(struct page *page, struct metapage *mp) remove_metapage() argument 152 insert_metapage(struct page *page, struct metapage *mp) insert_metapage() argument 162 remove_metapage(struct page *page, struct metapage *mp) remove_metapage() argument 176 struct metapage *mp = mempool_alloc(metapage_mempool, gfp_mask); alloc_metapage() local 189 free_metapage(struct metapage *mp) free_metapage() argument 221 drop_metapage(struct page *page, struct metapage *mp) drop_metapage() argument 280 remove_from_logsync(struct metapage *mp) remove_from_logsync() argument 304 struct metapage *mp; last_write_complete() local 344 struct metapage *mp; metapage_writepage() local 529 struct metapage *mp; metapage_release_folio() local 581 struct metapage *mp = NULL; __get_metapage() local 684 grab_metapage(struct metapage * mp) grab_metapage() argument 723 force_metapage(struct metapage *mp) force_metapage() argument 738 hold_metapage(struct metapage *mp) hold_metapage() argument 743 put_metapage(struct metapage *mp) put_metapage() argument 757 release_metapage(struct metapage * mp) release_metapage() argument 800 struct metapage *mp; __invalidate_metapages() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/apple/ |
H A D | mace.c | 92 static inline void mace_clean_rings(struct mace_data *mp); 113 struct mace_data *mp; in mace_probe() local 155 mp = netdev_priv(dev); in mace_probe() 156 mp->mdev = mdev; in mace_probe() 160 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe() 161 if (mp->mace == NULL) { in mace_probe() 172 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe() 173 in_8(&mp->mace->chipid_lo); in mace_probe() 176 mp in mace_probe() 277 struct mace_data *mp; mace_remove() local 319 struct mace_data *mp = netdev_priv(dev); mace_reset() local 374 struct mace_data *mp = netdev_priv(dev); __mace_set_address() local 395 struct mace_data *mp = netdev_priv(dev); mace_set_address() local 410 mace_clean_rings(struct mace_data *mp) mace_clean_rings() argument 430 struct mace_data *mp = netdev_priv(dev); mace_open() local 500 struct mace_data *mp = netdev_priv(dev); mace_close() local 520 struct mace_data *mp = netdev_priv(dev); mace_set_timeout() local 531 struct mace_data *mp = netdev_priv(dev); mace_xmit_start() local 586 struct mace_data *mp = netdev_priv(dev); mace_set_multicast() local 636 mace_handle_misc_intrs(struct mace_data *mp, int intr, struct net_device *dev) mace_handle_misc_intrs() argument 660 struct mace_data *mp = netdev_priv(dev); mace_interrupt() local 805 struct mace_data *mp = from_timer(mp, t, tx_timeout); mace_tx_timeout() local 877 struct mace_data *mp = netdev_priv(dev); mace_rxdma_intr() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/apple/ |
H A D | mace.c | 91 static inline void mace_clean_rings(struct mace_data *mp); 112 struct mace_data *mp; in mace_probe() local 155 mp = netdev_priv(dev); in mace_probe() 156 mp->mdev = mdev; in mace_probe() 160 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe() 161 if (mp->mace == NULL) { in mace_probe() 173 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe() 174 in_8(&mp->mace->chipid_lo); in mace_probe() 177 mp in mace_probe() 278 struct mace_data *mp; mace_remove() local 320 struct mace_data *mp = netdev_priv(dev); mace_reset() local 375 struct mace_data *mp = netdev_priv(dev); __mace_set_address() local 400 struct mace_data *mp = netdev_priv(dev); mace_set_address() local 415 mace_clean_rings(struct mace_data *mp) mace_clean_rings() argument 435 struct mace_data *mp = netdev_priv(dev); mace_open() local 505 struct mace_data *mp = netdev_priv(dev); mace_close() local 525 struct mace_data *mp = netdev_priv(dev); mace_set_timeout() local 536 struct mace_data *mp = netdev_priv(dev); mace_xmit_start() local 591 struct mace_data *mp = netdev_priv(dev); mace_set_multicast() local 641 mace_handle_misc_intrs(struct mace_data *mp, int intr, struct net_device *dev) mace_handle_misc_intrs() argument 665 struct mace_data *mp = netdev_priv(dev); mace_interrupt() local 810 struct mace_data *mp = from_timer(mp, t, tx_timeout); mace_tx_timeout() local 882 struct mace_data *mp = netdev_priv(dev); mace_rxdma_intr() local [all...] |