diff options
author | Dave Chinner <dchinner@redhat.com> | 2018-05-13 23:10:08 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-15 18:12:51 -0700 |
commit | 49dd56f26ea7d18d4ca71f43a082dbb92798ebd3 (patch) | |
tree | 484e098777d3af29c538c0c684af7ae31c59c1a8 /fs/xfs/libxfs/xfs_ag.h | |
parent | b16817b66b6c97d2a812d663d26faed40079892a (diff) | |
download | lwn-49dd56f26ea7d18d4ca71f43a082dbb92798ebd3.tar.gz lwn-49dd56f26ea7d18d4ca71f43a082dbb92798ebd3.zip |
xfs: factor the ag length extension code into libxfs
Growfs currently manually codes the extension of the last AG in a
filesytem during the growfs process. Factor that out of the growfs
code and move it into libxfs along with teh rest of the AG header
modification code.
Signed-Off-By: Dave Chinner <dchinner@redhat.com>
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_ag.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_ag.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ag.h b/fs/xfs/libxfs/xfs_ag.h index 69f2fd4be0ea..412702e23f61 100644 --- a/fs/xfs/libxfs/xfs_ag.h +++ b/fs/xfs/libxfs/xfs_ag.h @@ -7,6 +7,9 @@ #ifndef __LIBXFS_AG_H #define __LIBXFS_AG_H 1 +struct xfs_mount; +struct xfs_trans; + struct aghdr_init_data { /* per ag data */ xfs_agblock_t agno; /* ag to init */ @@ -20,6 +23,8 @@ struct aghdr_init_data { xfs_btnum_t type; /* type of btree root block */ }; -int xfs_ag_init_headers( struct xfs_mount *mp, struct aghdr_init_data *id); +int xfs_ag_init_headers(struct xfs_mount *mp, struct aghdr_init_data *id); +int xfs_ag_extend_space(struct xfs_mount *mp, struct xfs_trans *tp, + struct aghdr_init_data *id, xfs_extlen_t len); #endif /* __LIBXFS_AG_H */ |