Message ID | 1386116071-4592-1-git-send-email-solo@primarydata.com |
---|---|
State | Accepted, archived |
Headers | show |
On Wed, Dec 04, 2013 at 02:14:31AM +0200, Lev Solomonov wrote: > commit 2ae5d1fdb82b31bf270c4699c59a087c846db2f0 was supposed to teach > 'seti' and 'freei' to act on a range of consecutive inodes. apparently > only 'seti' has learned: 'freei' doesn't advance the ino, repeatedly > acting on the same one instead. > > Signed-off-by: Lev Solomonov <solo@primarydata.com> Applied, thanks. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 8c32eff..cd83ffe 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -1042,7 +1042,7 @@ void do_freei(int argc, char *argv[]) !ext2fs_test_inode_bitmap2(current_fs->inode_map,inode)) com_err(argv[0], 0, "Warning: inode already clear"); while (len-- > 0) - ext2fs_unmark_inode_bitmap2(current_fs->inode_map, inode); + ext2fs_unmark_inode_bitmap2(current_fs->inode_map, inode++); ext2fs_mark_ib_dirty(current_fs); }
commit 2ae5d1fdb82b31bf270c4699c59a087c846db2f0 was supposed to teach 'seti' and 'freei' to act on a range of consecutive inodes. apparently only 'seti' has learned: 'freei' doesn't advance the ino, repeatedly acting on the same one instead. Signed-off-by: Lev Solomonov <solo@primarydata.com> --- debugfs/debugfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)