Lines Matching +full:11 +full:mp

63 	struct xfs_mount	*mp;  member
338 #define M_IGEO(mp) (&(mp)->m_ino_geo) argument
357 #define XFS_FEAT_PARENT (1ULL << 11) /* parent pointers */
398 static inline bool xfs_has_ ## name (const struct xfs_mount *mp) \
400 return mp->m_features & XFS_FEAT_ ## NAME; \
406 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
408 mp->m_features |= XFS_FEAT_ ## NAME; \
409 xfs_sb_version_add ## name(&mp->m_sb); \
436 static inline bool xfs_has_rtgroups(const struct xfs_mount *mp) in __XFS_ADD_FEAT()
439 return xfs_has_metadir(mp); in __XFS_ADD_FEAT()
442 static inline bool xfs_has_rtsb(const struct xfs_mount *mp) in xfs_has_rtsb() argument
445 return xfs_has_rtgroups(mp) && in xfs_has_rtsb()
446 xfs_has_realtime(mp) && in xfs_has_rtsb()
447 !xfs_has_zoned(mp); in xfs_has_rtsb()
450 static inline bool xfs_has_rtrmapbt(const struct xfs_mount *mp) in xfs_has_rtrmapbt() argument
452 return xfs_has_rtgroups(mp) && xfs_has_realtime(mp) && in xfs_has_rtrmapbt()
453 xfs_has_rmapbt(mp); in xfs_has_rtrmapbt()
456 static inline bool xfs_has_rtreflink(const struct xfs_mount *mp) in xfs_has_rtreflink() argument
458 return xfs_has_metadir(mp) && xfs_has_realtime(mp) && in xfs_has_rtreflink()
459 xfs_has_reflink(mp); in xfs_has_rtreflink()
462 static inline bool xfs_has_nonzoned(const struct xfs_mount *mp) in xfs_has_nonzoned() argument
464 return !xfs_has_zoned(mp); in xfs_has_nonzoned()
472 static inline bool xfs_has_ ## name (struct xfs_mount *mp) \
475 (mp->m_features & XFS_FEAT_ ## NAME); \
480 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
483 mp->m_features |= XFS_FEAT_ ## NAME; \
484 xfs_sb_version_add ## name(&mp->m_sb); \
555 #define XFS_OPSTATE_QUOTACHECK_RUNNING 11 in __XFS_HAS_V4_FEAT()
576 static inline bool xfs_is_ ## name (struct xfs_mount *mp) \ in __XFS_HAS_V4_FEAT()
578 return test_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \ in __XFS_HAS_V4_FEAT()
580 static inline bool xfs_clear_ ## name (struct xfs_mount *mp) \
582 return test_and_clear_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
584 static inline bool xfs_set_ ## name (struct xfs_mount *mp) \
586 return test_and_set_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
600 static inline bool xfs_is_quotacheck_running(struct xfs_mount *mp)
604 static inline bool xfs_is_resuming_quotaon(struct xfs_mount *mp)
611 static inline bool xfs_clear_resuming_quotaon(struct xfs_mount *mp)
621 xfs_should_warn(struct xfs_mount *mp, long nr)
623 return !test_and_set_bit(nr, &mp->m_opstate);
648 void xfs_do_force_shutdown(struct xfs_mount *mp, uint32_t flags, char *fname,
673 xfs_daddr_to_agno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agno() argument
675 xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agno()
676 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
681 xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agbno() argument
683 xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agbno()
684 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
688 uint64_t xfs_default_resblks(struct xfs_mount *mp,
690 extern int xfs_mountfs(xfs_mount_t *mp);
702 uint64_t xfs_freecounter_unavailable(struct xfs_mount *mp,
708 static inline s64 xfs_sum_freecounter(struct xfs_mount *mp, in xfs_sum_freecounter() argument
711 return percpu_counter_sum_positive(&mp->m_free[ctr].count); in xfs_sum_freecounter()
718 static inline s64 xfs_sum_freecounter_raw(struct xfs_mount *mp, in xfs_sum_freecounter_raw() argument
721 return percpu_counter_sum(&mp->m_free[ctr].count); in xfs_sum_freecounter_raw()
728 static inline s64 xfs_estimate_freecounter(struct xfs_mount *mp, in xfs_estimate_freecounter() argument
731 return percpu_counter_read_positive(&mp->m_free[ctr].count); in xfs_estimate_freecounter()
734 static inline int xfs_compare_freecounter(struct xfs_mount *mp, in xfs_compare_freecounter() argument
737 return __percpu_counter_compare(&mp->m_free[ctr].count, rhs, batch); in xfs_compare_freecounter()
740 static inline void xfs_set_freecounter(struct xfs_mount *mp, in xfs_set_freecounter() argument
743 percpu_counter_set(&mp->m_free[ctr].count, val); in xfs_set_freecounter()
746 int xfs_dec_freecounter(struct xfs_mount *mp, enum xfs_free_counter ctr,
748 void xfs_add_freecounter(struct xfs_mount *mp, enum xfs_free_counter ctr,
751 static inline int xfs_dec_fdblocks(struct xfs_mount *mp, uint64_t delta, in xfs_dec_fdblocks() argument
754 return xfs_dec_freecounter(mp, XC_FREE_BLOCKS, delta, reserved); in xfs_dec_fdblocks()
757 static inline void xfs_add_fdblocks(struct xfs_mount *mp, uint64_t delta) in xfs_add_fdblocks() argument
759 xfs_add_freecounter(mp, XC_FREE_BLOCKS, delta); in xfs_add_fdblocks()
762 static inline int xfs_dec_frextents(struct xfs_mount *mp, uint64_t delta) in xfs_dec_frextents() argument
764 return xfs_dec_freecounter(mp, XC_FREE_RTEXTENTS, delta, false); in xfs_dec_frextents()
767 static inline void xfs_add_frextents(struct xfs_mount *mp, uint64_t delta) in xfs_add_frextents() argument
769 xfs_add_freecounter(mp, XC_FREE_RTEXTENTS, delta); in xfs_add_frextents()
774 extern bool xfs_fs_writable(struct xfs_mount *mp, int level);
784 struct xfs_error_cfg * xfs_error_get_cfg(struct xfs_mount *mp,
786 void xfs_force_summary_recalc(struct xfs_mount *mp);
787 int xfs_add_incompat_log_feature(struct xfs_mount *mp, uint32_t feature);
788 bool xfs_clear_incompat_log_features(struct xfs_mount *mp);
791 static inline void xfs_mod_sb_delalloc(struct xfs_mount *mp, int64_t delta) in xfs_mod_sb_delalloc() argument
793 percpu_counter_add(&mp->m_delalloc_blks, delta); in xfs_mod_sb_delalloc()