diff options
Diffstat (limited to 'fs/ext4/super.c')
| -rw-r--r-- | fs/ext4/super.c | 13 | 
1 files changed, 4 insertions, 9 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d733db8a0b02..7cdd2138c897 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1741,10 +1741,6 @@ static const struct fs_parameter_spec ext4_param_specs[] = {  #define DEFAULT_JOURNAL_IOPRIO (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, 3)) -static const char deprecated_msg[] = -	"Mount option \"%s\" will be removed by %s\n" -	"Contact [email protected] if you think we should keep it.\n"; -  #define MOPT_SET	0x0001  #define MOPT_CLEAR	0x0002  #define MOPT_NOSUPPORT	0x0004 @@ -3782,8 +3778,7 @@ cont_thread:  			}  			if (!progress) {  				elr->lr_next_sched = jiffies + -					(prandom_u32() -					 % (EXT4_DEF_LI_MAX_START_DELAY * HZ)); +					prandom_u32_max(EXT4_DEF_LI_MAX_START_DELAY * HZ);  			}  			if (time_before(elr->lr_next_sched, next_wakeup))  				next_wakeup = elr->lr_next_sched; @@ -3930,8 +3925,8 @@ static struct ext4_li_request *ext4_li_request_new(struct super_block *sb,  	 * spread the inode table initialization requests  	 * better.  	 */ -	elr->lr_next_sched = jiffies + (prandom_u32() % -				(EXT4_DEF_LI_MAX_START_DELAY * HZ)); +	elr->lr_next_sched = jiffies + prandom_u32_max( +				EXT4_DEF_LI_MAX_START_DELAY * HZ);  	return elr;  } @@ -4886,7 +4881,7 @@ out:  	flush_work(&sbi->s_error_work);  	jbd2_journal_destroy(sbi->s_journal);  	sbi->s_journal = NULL; -	return err; +	return -EINVAL;  }  static int ext4_journal_data_mode_check(struct super_block *sb)  |