Lines Matching +full:11 +full:mp
63 struct xfs_mount *mp; member
265 #define M_IGEO(mp) (&(mp)->m_ino_geo) argument
284 #define XFS_FEAT_PARENT (1ULL << 11) /* parent pointers */
322 static inline bool xfs_has_ ## name (struct xfs_mount *mp) \
324 return mp->m_features & XFS_FEAT_ ## NAME; \
330 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
332 mp->m_features |= XFS_FEAT_ ## NAME; \
333 xfs_sb_version_add ## name(&mp->m_sb); \
362 static inline bool xfs_has_ ## name (struct xfs_mount *mp) \ in __XFS_ADD_FEAT()
365 (mp->m_features & XFS_FEAT_ ## NAME); \ in __XFS_ADD_FEAT()
370 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
373 mp->m_features |= XFS_FEAT_ ## NAME; \
374 xfs_sb_version_add ## name(&mp->m_sb); \
445 #define XFS_OPSTATE_UNSET_LOG_INCOMPAT 11
450 static inline bool xfs_is_ ## name (struct xfs_mount *mp) \
452 return test_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
454 static inline bool xfs_clear_ ## name (struct xfs_mount *mp) \
456 return test_and_clear_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
458 static inline bool xfs_set_ ## name (struct xfs_mount *mp) \
460 return test_and_set_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
473 # define xfs_is_quotacheck_running(mp) (false)
479 xfs_should_warn(struct xfs_mount *mp, long nr)
481 return !test_and_set_bit(nr, &mp->m_opstate);
506 void xfs_do_force_shutdown(struct xfs_mount *mp, uint32_t flags, char *fname,
531 xfs_daddr_to_agno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agno() argument
533 xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agno()
534 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
539 xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agbno() argument
541 xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agbno()
542 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
546 extern uint64_t xfs_default_resblks(xfs_mount_t *mp);
547 extern int xfs_mountfs(xfs_mount_t *mp);
569 struct xfs_mount *mp) in xfs_fdblocks_unavailable() argument
571 return mp->m_alloc_set_aside + atomic64_read(&mp->m_allocbt_blks); in xfs_fdblocks_unavailable()
574 int xfs_dec_freecounter(struct xfs_mount *mp, struct percpu_counter *counter,
576 void xfs_add_freecounter(struct xfs_mount *mp, struct percpu_counter *counter,
579 static inline int xfs_dec_fdblocks(struct xfs_mount *mp, uint64_t delta, in xfs_dec_fdblocks() argument
582 return xfs_dec_freecounter(mp, &mp->m_fdblocks, delta, reserved); in xfs_dec_fdblocks()
585 static inline void xfs_add_fdblocks(struct xfs_mount *mp, uint64_t delta) in xfs_add_fdblocks() argument
587 xfs_add_freecounter(mp, &mp->m_fdblocks, delta); in xfs_add_fdblocks()
590 static inline int xfs_dec_frextents(struct xfs_mount *mp, uint64_t delta) in xfs_dec_frextents() argument
592 return xfs_dec_freecounter(mp, &mp->m_frextents, delta, false); in xfs_dec_frextents()
595 static inline void xfs_add_frextents(struct xfs_mount *mp, uint64_t delta) in xfs_add_frextents() argument
597 xfs_add_freecounter(mp, &mp->m_frextents, delta); in xfs_add_frextents()
602 extern bool xfs_fs_writable(struct xfs_mount *mp, int level);
612 struct xfs_error_cfg * xfs_error_get_cfg(struct xfs_mount *mp,
614 void xfs_force_summary_recalc(struct xfs_mount *mp);
615 int xfs_add_incompat_log_feature(struct xfs_mount *mp, uint32_t feature);
616 bool xfs_clear_incompat_log_features(struct xfs_mount *mp);