diff mbox

debugfs: fix range mode of freei

Message ID 1386116071-4592-1-git-send-email-solo@primarydata.com
State Accepted, archived
Headers show

Commit Message

Lev Solomonov Dec. 4, 2013, 12:14 a.m. UTC
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(-)

Comments

Theodore Ts'o Dec. 5, 2013, 2:55 a.m. UTC | #1
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 mbox

Patch

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);
 }