diff options
author | 2019-11-08 14:52:06 -0800 | |
---|---|---|
committer | 2019-11-10 16:54:19 -0800 | |
commit | a39f089a25e75c3d17b955d8eb8bc781f23364f3 (patch) | |
tree | b49604d018c4a2cb67f2108f20832369823422c2 /fs/xfs/libxfs/xfs_dir2_priv.h | |
parent | xfs: remove a stray tab in xfs_remount_rw() (diff) | |
download | linux-a39f089a25e75c3d17b955d8eb8bc781f23364f3.tar.gz linux-a39f089a25e75c3d17b955d8eb8bc781f23364f3.tar.bz2 linux-a39f089a25e75c3d17b955d8eb8bc781f23364f3.zip |
xfs: move incore structures out of xfs_da_format.h
Move the abstract in-memory version of various btree block headers
out of xfs_da_format.h as they aren't on-disk formats.
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2_priv.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2_priv.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2_priv.h b/fs/xfs/libxfs/xfs_dir2_priv.h index 59f9fb2241a5..d2eaea663e7f 100644 --- a/fs/xfs/libxfs/xfs_dir2_priv.h +++ b/fs/xfs/libxfs/xfs_dir2_priv.h @@ -8,6 +8,25 @@ struct dir_context; +/* + * In-core version of the leaf and free block headers to abstract the + * differences in the v2 and v3 disk format of the headers. + */ +struct xfs_dir3_icleaf_hdr { + uint32_t forw; + uint32_t back; + uint16_t magic; + uint16_t count; + uint16_t stale; +}; + +struct xfs_dir3_icfree_hdr { + uint32_t magic; + uint32_t firstdb; + uint32_t nvalid; + uint32_t nused; +}; + /* xfs_dir2.c */ extern int xfs_dir2_grow_inode(struct xfs_da_args *args, int space, xfs_dir2_db_t *dbp); |