summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_alloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-26 15:59:31 +1000
committerDave Chinner <david@fromorbit.com>2016-08-26 15:59:31 +1000
commitda1f039d6947b1a49f13b39a6de0df2a3e9e1ed1 (patch)
treedad5b15e4028a9116c0d45773c7cebd4f19fb1d5 /fs/xfs/libxfs/xfs_alloc.c
parent738f57c16a2bb527c705641f0fc1c68ff8cba72a (diff)
downloadlwn-da1f039d6947b1a49f13b39a6de0df2a3e9e1ed1.tar.gz
lwn-da1f039d6947b1a49f13b39a6de0df2a3e9e1ed1.zip
xfs: don't log the entire end of the AGF
When we're logging the last non-spare field in the AGF, we don't need to log the spare fields, so plumb in a new AGF logging flag to help us avoid that. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.c')
-rw-r--r--fs/xfs/libxfs/xfs_alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c
index 3dd8f1d54498..05b5243d89f6 100644
--- a/fs/xfs/libxfs/xfs_alloc.c
+++ b/fs/xfs/libxfs/xfs_alloc.c
@@ -2278,6 +2278,8 @@ xfs_alloc_log_agf(
offsetof(xfs_agf_t, agf_btreeblks),
offsetof(xfs_agf_t, agf_uuid),
offsetof(xfs_agf_t, agf_rmap_blocks),
+ /* needed so that we don't log the whole rest of the structure: */
+ offsetof(xfs_agf_t, agf_spare64),
sizeof(xfs_agf_t)
};