]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: randomly do sparse inode allocations in DEBUG mode
authorBrian Foster <bfoster@redhat.com>
Thu, 28 May 2015 23:19:29 +0000 (09:19 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 30 Jul 2015 23:11:07 +0000 (09:11 +1000)
commitc9005f410887cbcdb3a433ff8feec0fed386637b
tree07223c380cbc0537ed6d42ce4f03fa3e98555f88
parent6f4c54a442be8b7409f3cb8f5d7e867830d88ddf
xfs: randomly do sparse inode allocations in DEBUG mode

Sparse inode allocations generally only occur when full inode chunk
allocation fails. This requires some level of filesystem space usage and
fragmentation.

For filesystems formatted with sparse inode chunks enabled, do random
sparse inode chunk allocs when compiled in DEBUG mode to increase test
coverage.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_ialloc.c