diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:15:25 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:17:11 -0700 |
commit | e86a2b6118f2b221b41529e8ac784229459e1c0b (patch) | |
tree | 26cc9ddf41fb7c735af3545e2f51979d9cc9efda /fs/xfs/libxfs/xfs_types.h | |
parent | a7da613603a4e7b3e6949973fdeb7994586a2809 (diff) |
xfs: allow inode-based btrees to reserve space in the data devicereserve-rt-metadata-space_2022-10-14
Create a new space reservation scheme so that btree metadata for the
realtime volume can reserve space in the data device to avoid space
underruns.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_types.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_types.h b/fs/xfs/libxfs/xfs_types.h index 99f753227ee9..5479822b77fc 100644 --- a/fs/xfs/libxfs/xfs_types.h +++ b/fs/xfs/libxfs/xfs_types.h @@ -219,6 +219,13 @@ enum xfs_ag_resv_type { * altering fdblocks. If you think you need this you're wrong. */ XFS_AG_RESV_IGNORE, + + /* + * This allocation activity is being done on behalf of a metadata file. + * These files maintain their own permanent space reservations and are + * required to adjust fdblocks using the xfs_imeta_resv_* helpers. + */ + XFS_AG_RESV_IMETA, }; /* Results of scanning a btree keyspace to check occupancy. */ |