]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ext2fs: make e2fs_maxcontig local and remove tautological check.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Fri, 8 Feb 2013 20:58:00 +0000 (20:58 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Fri, 8 Feb 2013 20:58:00 +0000 (20:58 +0000)
commit1a125d6d8502991bcf7d7b2b59070e60866d7ec6
tree957664bfe9179f22a93447b484711a0425d1e978
parenta940ce65cd48c6f6bec61e110ccb8cf07b5ea12d
ext2fs: make e2fs_maxcontig local and remove tautological check.

e2fs_maxcontig was modelled after UFS when bringing the
"Orlov allocator" to ext2. On UFS fs_maxcontig is kept in the
superblock and is used by userland tools (fsck and growfs),

In ext2 this information is volatile so it is not available
for userland tools, so in this case it doesn't have sense
to carry it in the in-memory superblock.

Also remove a pointless check for MAX(1, x) > 0.

Submitted by: Christoph Mallon
MFC after: 2 weeks
sys/fs/ext2fs/ext2_vfsops.c
sys/fs/ext2fs/ext2fs.h