summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorQi Yong <qiyong@fc-cn.com>2014-08-08 14:20:29 -0700
committerJiri Slaby <jslaby@suse.cz>2014-12-03 11:58:43 +0100
commit692f067fb661c39cc800ae7407ab655173ca2de2 (patch)
tree0a5bccfdf9bc49de4da5c888093b2a15b7433cd1 /include/linux
parent0d68992fb4250d00a906ee886ec541a6afeab066 (diff)
downloadlwn-692f067fb661c39cc800ae7407ab655173ca2de2.tar.gz
lwn-692f067fb661c39cc800ae7407ab655173ca2de2.zip
minix zmap block counts calculation fix
commit 6d6747f85314687f72012ae85cde401db531e130 upstream. The original minix zmap blocks calculation was correct, in the formula of: sbi->s_nzones - sbi->s_firstdatazone + 1 It is sp->s_zones - (sp->s_firstdatazone - 1) in the minix3 source code. But a later commit 016e8d44bc06 ("fs/minix: Verify bitmap block counts before mounting") has changed it unfortunately as: sbi->s_nzones - (sbi->s_firstdatazone + 1) This would show free blocks one block less than the real when the total data blocks are in "full zmap blocks plus one". This patch corrects that zmap blocks calculation and tidy a printk message while at it. Signed-off-by: Qi Yong <qiyong@fc-cn.com> Cc: Josh Boyer <jwboyer@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions