Handle large setb/testb/freeb commands in debugfs
Fix a signed vs. unsigned problem by using blk_t instead of int
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 5efeb07..c19f2a9 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -726,7 +726,7 @@
void do_freeb(int argc, char *argv[])
{
blk_t block;
- int count = 1;
+ blk_t count = 1;
if (common_block_args_process(argc, argv, &block, &count))
return;
@@ -745,7 +745,7 @@
void do_setb(int argc, char *argv[])
{
blk_t block;
- int count = 1;
+ blk_t count = 1;
if (common_block_args_process(argc, argv, &block, &count))
return;
@@ -764,7 +764,7 @@
void do_testb(int argc, char *argv[])
{
blk_t block;
- int count = 1;
+ blk_t count = 1;
if (common_block_args_process(argc, argv, &block, &count))
return;