aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-11-16 22:11:35 -0600
committerEric Sandeen <sandeen@redhat.com>2017-11-16 22:11:35 -0600
commit5837f99a9f30cf83391f546bc3ac287b345027dc (patch)
tree7a5a787d837fc14cddce3e79dc21c7afa687a5ad
parent080f0c7115772523808a1a4a69230c05a5f37585 (diff)
downloadxfsprogs-dev-5837f99a9f30cf83391f546bc3ac287b345027dc.tar.gz
xfs: move xfs_bmbt_irec and xfs_exntst_t to xfs_types.h
Source kernel commit: 866d7826c966d0d17cb31eaf394728a163ad7227 Neither defines an on-disk format, so move them out of xfs_format.h. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--libxfs/xfs_format.h18
-rw-r--r--libxfs/xfs_types.h12
2 files changed, 12 insertions, 18 deletions
diff --git a/libxfs/xfs_format.h b/libxfs/xfs_format.h
index 4ab4f9b70d..48548933fc 100644
--- a/libxfs/xfs_format.h
+++ b/libxfs/xfs_format.h
@@ -1578,24 +1578,6 @@ static inline xfs_filblks_t startblockval(xfs_fsblock_t x)
}
/*
- * Possible extent states.
- */
-typedef enum {
- XFS_EXT_NORM, XFS_EXT_UNWRITTEN,
-} xfs_exntst_t;
-
-/*
- * Incore version of above.
- */
-typedef struct xfs_bmbt_irec
-{
- xfs_fileoff_t br_startoff; /* starting file offset */
- xfs_fsblock_t br_startblock; /* starting block number */
- xfs_filblks_t br_blockcount; /* number of blocks */
- xfs_exntst_t br_state; /* extent state */
-} xfs_bmbt_irec_t;
-
-/*
* Key structure for non-leaf levels of the tree.
*/
typedef struct xfs_bmbt_key {
diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h
index 9838780190..3c560695c5 100644
--- a/libxfs/xfs_types.h
+++ b/libxfs/xfs_types.h
@@ -147,4 +147,16 @@ struct xfs_iext_cursor {
int pos;
};
+typedef enum {
+ XFS_EXT_NORM, XFS_EXT_UNWRITTEN,
+} xfs_exntst_t;
+
+typedef struct xfs_bmbt_irec
+{
+ xfs_fileoff_t br_startoff; /* starting file offset */
+ xfs_fsblock_t br_startblock; /* starting block number */
+ xfs_filblks_t br_blockcount; /* number of blocks */
+ xfs_exntst_t br_state; /* extent state */
+} xfs_bmbt_irec_t;
+
#endif /* __XFS_TYPES_H__ */