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, 28 May 2015 23:19:29 +0000 (09:19 +1000)
commit1cdadee11f8d44b16f8110cf01498bd7c38474d8
treefa80bf105720663ae9b4f631c757c7ecfdd59ded
parent56d1115c9bc7853e143f59fb5976cf3de609f657
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>
fs/xfs/libxfs/xfs_ialloc.c