Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339413
b: refs/heads/master
c: de49768
h: refs/heads/master
i:
  339411: 4dbe2c6
v: v3
  • Loading branch information
Dave Chinner authored and Ben Myers committed Nov 13, 2012
1 parent babb21f commit 1ff932c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd23683c3b1ab905cba61ea2981c156f4bf52845
refs/heads/master: de497688daaabbab425a8a969528272ec1d962a6
23 changes: 22 additions & 1 deletion trunk/fs/xfs/xfs_fsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ xfs_growfs_data_private(
xfs_growfs_data_t *in) /* growfs data input struct */
{
xfs_agf_t *agf;
struct xfs_agfl *agfl;
xfs_agi_t *agi;
xfs_agnumber_t agno;
xfs_extlen_t agsize;
Expand Down Expand Up @@ -207,7 +208,7 @@ xfs_growfs_data_private(
nfree = 0;
for (agno = nagcount - 1; agno >= oagcount; agno--, new -= agsize) {
/*
* AG freelist header block
* AG freespace header block
*/
bp = xfs_growfs_get_hdr_buf(mp,
XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)),
Expand Down Expand Up @@ -243,6 +244,26 @@ xfs_growfs_data_private(
if (error)
goto error0;

/*
* AG freelist header block
*/
bp = xfs_growfs_get_hdr_buf(mp,
XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)),
XFS_FSS_TO_BB(mp, 1), 0);
if (!bp) {
error = ENOMEM;
goto error0;
}

agfl = XFS_BUF_TO_AGFL(bp);
for (bucket = 0; bucket < XFS_AGFL_SIZE(mp); bucket++)
agfl->agfl_bno[bucket] = cpu_to_be32(NULLAGBLOCK);

error = xfs_bwrite(bp);
xfs_buf_relse(bp);
if (error)
goto error0;

/*
* AG inode header block
*/
Expand Down

0 comments on commit 1ff932c

Please sign in to comment.