Lines Matching +full:retain +full:- +full:state +full:- +full:shutdown

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
45 #define XFS_ERR_RETRY_FOREVER -1
50 * signed 32-bit long is sufficient for a HZ value up to 24855. Making it
51 * signed lets us store the special "-1" value, meaning retry forever.
56 long retry_timeout; /* in jiffies, -1 = infinite */
60 * Per-cpu deferred inode inactivation GC lists.
72 * The struct xfsmount layout is optimised to separate read-mostly variables
73 * from variables that are frequently modified. We put the read-mostly variables
76 * Typically, read-mostly variables are those that are set at mount time and
107 struct xfs_mru_cache *m_filestream; /* per-mount filestream data */
117 uint8_t m_blkbb_log; /* blocklog - BBSHIFT */
119 uint8_t m_sectbb_log; /* sectlog - BBSHIFT */
120 uint m_blockmask; /* sb_blocksize-1 */
122 uint m_blockwmask; /* blockwsize-1 */
155 unsigned long m_opstate; /* dynamic state flags */
158 bool m_finobt_nores; /* no per-AG finobt resv. */
162 * Bitsets of per-fs metadata that have been checked and/or are sick.
175 * End of read-mostly variables. Frequently written variables and locks
178 * the read-mostly variables.
198 struct radix_tree_root m_perag_tree; /* per-ag accounting info */
208 struct xstats m_stats; /* per-fs stats */
244 #define M_IGEO(mp) (&(mp)->m_ino_geo)
260 #define XFS_FEAT_ASCIICI (1ULL << 8) /* ASCII only case-insens. */
267 #define XFS_FEAT_PQUOTINO (1ULL << 15) /* non-shared proj/grp quotas */
288 #define XFS_FEAT_GRPID (1ULL << 55) /* group-ID assigned from directory */
295 #define XFS_FEAT_NORECOVERY (1ULL << 62) /* no recovery - dirty fs */
301 return mp->m_features & XFS_FEAT_ ## NAME; \
309 mp->m_features |= XFS_FEAT_ ## NAME; \
310 xfs_sb_version_add ## name(&mp->m_sb); \
344 * These do not change dynamically - features that can come and go, such as 32
345 * bit inodes and read-only state, are kept as operational state rather than
366 * Operational mount state flags
374 #define XFS_OPSTATE_READONLY 4 /* read-only fs */
384 * to process queued blockgc work. If not, inodes retain their preallocations
392 return test_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
396 return test_and_clear_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
400 return test_and_set_bit(XFS_OPSTATE_ ## NAME, &mp->m_opstate); \
405 __XFS_IS_OPSTATE(shutdown, SHUTDOWN)
414 { (1UL << XFS_OPSTATE_SHUTDOWN), "shutdown" }, \
421 * Max and min values for mount-option defined I/O
435 #define SHUTDOWN_FORCE_UMOUNT 0x0004 /* shutdown from a forced unmount */
436 #define SHUTDOWN_CORRUPT_INCORE 0x0008 /* corrupt in-memory data structures */
453 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
461 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()