Lines Matching +full:11 +full:mp

63 	struct xfs_mount	*mp;  member
302 #define M_IGEO(mp) (&(mp)->m_ino_geo) argument
321 #define XFS_FEAT_PARENT (1ULL << 11) /* parent pointers */
360 static inline bool xfs_has_ ## name (const struct xfs_mount *mp) \
362 return mp->m_features & XFS_FEAT_ ## NAME; \
368 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
370 mp->m_features |= XFS_FEAT_ ## NAME; \
371 xfs_sb_version_add ## name(&mp->m_sb); \
396 static inline bool xfs_has_rtgroups(const struct xfs_mount *mp) in __XFS_ADD_FEAT()
399 return xfs_has_metadir(mp); in __XFS_ADD_FEAT()
402 static inline bool xfs_has_rtsb(const struct xfs_mount *mp) in xfs_has_rtsb() argument
405 return xfs_has_rtgroups(mp) && xfs_has_realtime(mp); in xfs_has_rtsb()
408 static inline bool xfs_has_rtrmapbt(const struct xfs_mount *mp) in xfs_has_rtrmapbt() argument
410 return xfs_has_rtgroups(mp) && xfs_has_realtime(mp) && in xfs_has_rtrmapbt()
411 xfs_has_rmapbt(mp); in xfs_has_rtrmapbt()
414 static inline bool xfs_has_rtreflink(const struct xfs_mount *mp) in xfs_has_rtreflink() argument
416 return xfs_has_metadir(mp) && xfs_has_realtime(mp) && in xfs_has_rtreflink()
417 xfs_has_reflink(mp); in xfs_has_rtreflink()
425 static inline bool xfs_has_ ## name (struct xfs_mount *mp) \
428 (mp->m_features & XFS_FEAT_ ## NAME); \
433 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
436 mp->m_features |= XFS_FEAT_ ## NAME; \
437 xfs_sb_version_add ## name(&mp->m_sb); \
508 #define XFS_OPSTATE_QUOTACHECK_RUNNING 11 in __XFS_HAS_V4_FEAT()
525 static inline bool xfs_is_ ## name (struct xfs_mount *mp) \ in __XFS_HAS_V4_FEAT()
527 return test_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \ in __XFS_HAS_V4_FEAT()
529 static inline bool xfs_clear_ ## name (struct xfs_mount *mp) \
531 return test_and_clear_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
533 static inline bool xfs_set_ ## name (struct xfs_mount *mp) \
535 return test_and_set_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
549 static inline bool xfs_is_quotacheck_running(struct xfs_mount *mp)
553 static inline bool xfs_is_resuming_quotaon(struct xfs_mount *mp)
560 static inline bool xfs_clear_resuming_quotaon(struct xfs_mount *mp)
569 xfs_should_warn(struct xfs_mount *mp, long nr)
571 return !test_and_set_bit(nr, &mp->m_opstate);
596 void xfs_do_force_shutdown(struct xfs_mount *mp, uint32_t flags, char *fname,
621 xfs_daddr_to_agno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agno() argument
623 xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agno()
624 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
629 xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agbno() argument
631 xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agbno()
632 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
636 extern uint64_t xfs_default_resblks(xfs_mount_t *mp);
637 extern int xfs_mountfs(xfs_mount_t *mp);
659 struct xfs_mount *mp) in xfs_fdblocks_unavailable() argument
661 return mp->m_alloc_set_aside + atomic64_read(&mp->m_allocbt_blks); in xfs_fdblocks_unavailable()
664 int xfs_dec_freecounter(struct xfs_mount *mp, struct percpu_counter *counter,
666 void xfs_add_freecounter(struct xfs_mount *mp, struct percpu_counter *counter,
669 static inline int xfs_dec_fdblocks(struct xfs_mount *mp, uint64_t delta, in xfs_dec_fdblocks() argument
672 return xfs_dec_freecounter(mp, &mp->m_fdblocks, delta, reserved); in xfs_dec_fdblocks()
675 static inline void xfs_add_fdblocks(struct xfs_mount *mp, uint64_t delta) in xfs_add_fdblocks() argument
677 xfs_add_freecounter(mp, &mp->m_fdblocks, delta); in xfs_add_fdblocks()
680 static inline int xfs_dec_frextents(struct xfs_mount *mp, uint64_t delta) in xfs_dec_frextents() argument
682 return xfs_dec_freecounter(mp, &mp->m_frextents, delta, false); in xfs_dec_frextents()
685 static inline void xfs_add_frextents(struct xfs_mount *mp, uint64_t delta) in xfs_add_frextents() argument
687 xfs_add_freecounter(mp, &mp->m_frextents, delta); in xfs_add_frextents()
692 extern bool xfs_fs_writable(struct xfs_mount *mp, int level);
702 struct xfs_error_cfg * xfs_error_get_cfg(struct xfs_mount *mp,
704 void xfs_force_summary_recalc(struct xfs_mount *mp);
705 int xfs_add_incompat_log_feature(struct xfs_mount *mp, uint32_t feature);
706 bool xfs_clear_incompat_log_features(struct xfs_mount *mp);