debugfs: fix argument parsing in do_freefrag()

When do_freefrag() is called from debugfs, the value of optind is
not reset. Rectify that by calling reset_getopt().

Signed-off-by: Artemiy Volkov <artemiyv@acm.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
test-maint
Artemiy Volkov 2014-08-02 19:53:04 -04:00 committed by Theodore Ts'o
parent 3b9904967b
commit bf140bf298
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ int main(int argc, char *argv[])
#ifdef DEBUGFS
if (check_fs_open(argv[0]))
return;
reset_getopt();
#else
char *device_name;