summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_log_priv.h
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2015-06-04 06:03:34 +0300
committerDave Chinner <david@fromorbit.com>2015-06-04 06:03:34 +0300
commit46fc58dacf6e9b00629c57998a8a23f85c262b3f (patch)
treeef2cf5db7380c932616a8d4f8c36135a8d95b97f /fs/xfs/xfs_log_priv.h
parent3cdaa1898ff3b16f69619cb5df2f45158e104817 (diff)
downloadlinux-46fc58dacf6e9b00629c57998a8a23f85c262b3f.tar.xz
xfs: check min blks for random debug mode sparse allocations
The inode allocator enables random sparse inode chunk allocations in DEBUG mode to facilitate testing. Sparse inode allocations are not always possible, however, depending on the fs geometry. For example, there is no possibility for a sparse inode allocation on filesystems where the block size is large enough to fit one or more inode chunks within a single block. Fix up the DEBUG mode sparse inode allocation logic to trigger random sparse allocations only when the geometry of the fs allows it. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
0 files changed, 0 insertions, 0 deletions