Whamcloud - gitweb
mke2fs: don't set stripe/stride to 1 block 23/1323/1
authorEric Sandeen <sandeen@redhat.com>
Mon, 4 Apr 2011 19:11:52 +0000 (15:11 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 1 Sep 2011 22:55:34 +0000 (16:55 -0600)
commit89dad1f4433ee9655e6938986aa64ac718c4377b
treeb5ddbaa55b462335d7addbb71c6314fd03aca40e
parent117109b89a4baa514e7c7c2090b4226ffd69f933
mke2fs: don't set stripe/stride to 1 block

Block devices may set minimum or optimal IO hints equal to
blocksize; in this case there is really nothing for ext4
to do with this information (i.e. search for a block-aligned
allocation?) so don't set fs geometry with single-block
values.

Zeev also reported that with a block-sized stripe, the
ext4 allocator spends time spinning in ext4_mb_scan_aligned(),
oddly enough.

Reported-by: Zeev Tarantov <zeev.tarantov@gmail.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c