mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-24 09:23:47 +08:00
resize2fs.c (block_mover): If there are no blocks to move,
release the bmap table. This significantly speeds up resize2fs when shrinking or expanding a filesystem by a very small number of blocks (which EVMS will do).
This commit is contained in:
parent
850d05e9aa
commit
cefbf4870c
@ -1,3 +1,10 @@
|
||||
2002-07-26 Theodore Ts'o <tytso@mit.edu>
|
||||
|
||||
* resize2fs.c (block_mover): If there are no blocks to move,
|
||||
release the bmap table. This significantly speeds up
|
||||
resize2fs when shrinking or expanding a filesystem by a
|
||||
very small number of blocks (which EVMS will do).
|
||||
|
||||
2002-05-28 <tytso@mit.edu>
|
||||
|
||||
* main.c (main): If the filesystem has errors or is not valid,
|
||||
|
@ -790,6 +790,10 @@ static errcode_t block_mover(ext2_resize_t rfs)
|
||||
}
|
||||
|
||||
if (to_move == 0) {
|
||||
if (rfs->bmap) {
|
||||
ext2fs_free_extent_table(rfs->bmap);
|
||||
rfs->bmap = 0;
|
||||
}
|
||||
retval = 0;
|
||||
goto errout;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user