projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abe9688
)
ext4: fix incorrect inodes per group in error message
author
Josh Triplett
<josh@joshtriplett.org>
Sat, 28 Mar 2020 22:34:15 +0000
(15:34 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 06:00:55 +0000
(08:00 +0200)
commit
b9c538da4e52a7b79dfcf4cfa487c46125066dfb
upstream.
If ext4_fill_super detects an invalid number of inodes per group, the
resulting error message printed the number of blocks per group, rather
than the number of inodes per group. Fix it to print the correct value.
Fixes:
cd6bb35bf7f6d
("ext4: use more strict checks for inodes_per_block on mount")
Link:
https://lore.kernel.org/r/8be03355983a08e5d4eed480944613454d7e2550.1585434649.git.josh@joshtriplett.org
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/super.c
b/fs/ext4/super.c
index f5b8675f9b55b18fa00f128b6be3f2056e3124cf..875032fe75c4b68f9f721ad243bb4af5dd8dec27 100644
(file)
--- a/
fs/ext4/super.c
+++ b/
fs/ext4/super.c
@@
-3969,7
+3969,7
@@
static int ext4_fill_super(struct super_block *sb, void *data, int silent)
if (sbi->s_inodes_per_group < sbi->s_inodes_per_block ||
sbi->s_inodes_per_group > blocksize * 8) {
ext4_msg(sb, KERN_ERR, "invalid inodes per group: %lu\n",
- sbi->s_
block
s_per_group);
+ sbi->s_
inode
s_per_group);
goto failed_mount;
}
sbi->s_itb_per_group = sbi->s_inodes_per_group /