mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
xfs: use memset to initialize xfs_scrub_agfl_info
Apparently different gcc versions have competing and incompatible notions of how to initialize at declaration, so just give up and fall back to the time-tested memset(). Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
7928b2cbe5
commit
86516eff3b
1 changed files with 2 additions and 1 deletions
|
@ -767,7 +767,7 @@ int
|
||||||
xfs_scrub_agfl(
|
xfs_scrub_agfl(
|
||||||
struct xfs_scrub_context *sc)
|
struct xfs_scrub_context *sc)
|
||||||
{
|
{
|
||||||
struct xfs_scrub_agfl_info sai = { 0 };
|
struct xfs_scrub_agfl_info sai;
|
||||||
struct xfs_agf *agf;
|
struct xfs_agf *agf;
|
||||||
xfs_agnumber_t agno;
|
xfs_agnumber_t agno;
|
||||||
unsigned int agflcount;
|
unsigned int agflcount;
|
||||||
|
@ -795,6 +795,7 @@ xfs_scrub_agfl(
|
||||||
xfs_scrub_block_set_corrupt(sc, sc->sa.agf_bp);
|
xfs_scrub_block_set_corrupt(sc, sc->sa.agf_bp);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
memset(&sai, 0, sizeof(sai));
|
||||||
sai.sz_entries = agflcount;
|
sai.sz_entries = agflcount;
|
||||||
sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, KM_NOFS);
|
sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, KM_NOFS);
|
||||||
if (!sai.entries) {
|
if (!sai.entries) {
|
||||||
|
|
Loading…
Reference in a new issue