]> Git Repo - linux.git/commit
minixfs: fix block limit check
authorVladimir Serbinenko <[email protected]>
Mon, 30 Jul 2012 21:42:00 +0000 (14:42 -0700)
committerLinus Torvalds <[email protected]>
Tue, 31 Jul 2012 00:25:19 +0000 (17:25 -0700)
commit6ed6a722f9abac25b0549e7507a2b745ede4475c
treee4abd14e4d767d37010df501e0941fd826590522
parent8dccaf0607b3e047680952d0baf4da0486fbbcc1
minixfs: fix block limit check

On minix2 and minix3 usually max_size is 7fffffff and the check in
question prohibits creation of last block spanning right before 7fffffff,
due to downward rounding during the division.  Fix it by using
multiplication instead.

[[email protected]: fix up code layout, use local `sb']
Signed-off-by: Vladimir Serbinenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/minix/itree_v2.c
This page took 0.050991 seconds and 4 git commands to generate.