From: Adrian Bunk Since the nolargeio option no longer has any effect, print a warning instead of setting a write-only variable. Signed-off-by: Adrian Bunk Cc: Jeff Mahoney Cc: Chris Mason Cc: Hans Reiser Signed-off-by: Andrew Morton --- fs/reiserfs/super.c | 21 ++------------------- 1 files changed, 2 insertions(+), 19 deletions(-) diff -puN fs/reiserfs/super.c~reiserfs-warn-about-the-useless-nolargeio-option fs/reiserfs/super.c --- a/fs/reiserfs/super.c~reiserfs-warn-about-the-useless-nolargeio-option +++ a/fs/reiserfs/super.c @@ -725,12 +725,6 @@ static const arg_desc_t error_actions[] {NULL, 0, 0}, }; -int reiserfs_default_io_size = 128 * 1024; /* Default recommended I/O size is 128k. - There might be broken applications that are - confused by this. Use nolargeio mount option - to get usual i/o size = PAGE_SIZE. - */ - /* proceed only one option from a list *cur - string containing of mount options opts - array of options which are accepted opt_arg - if option is found and requires an argument and if it is specifed @@ -959,19 +953,8 @@ static int reiserfs_parse_options(struct } if (c == 'w') { - char *p = NULL; - int val = simple_strtoul(arg, &p, 0); - - if (*p != '\0') { - reiserfs_warning(s, - "reiserfs_parse_options: non-numeric value %s for nolargeio option", - arg); - return 0; - } - if (val) - reiserfs_default_io_size = PAGE_SIZE; - else - reiserfs_default_io_size = 128 * 1024; + reiserfs_warning(s, "reiserfs: nolargeio option is no longer supported"); + return 0; } if (c == 'j') { _