• Christoph Hellwig's avatar
    xfs: don't ifdef around the exact minlen allocations · b611fddc
    Christoph Hellwig authored
    Exact minlen allocations only exist as an error injection tool for debug
    builds.  Currently this is implemented using ifdefs, which means the code
    isn't even compiled for non-XFS_DEBUG builds.  Enhance the compile test
    coverage by always building the code and use the compilers' dead code
    elimination to remove it from the generated binary instead.
    
    The only downside is that the alloc_minlen_only field is unconditionally
    added to struct xfs_alloc_args now, but by moving it around and packing
    it tightly this doesn't actually increase the size of the structure.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
    b611fddc
xfs_bmap.c 173 KB