]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ufs: truncate negative to unsigned fix
authorEvgeniy Dushistov <dushistov@mail.ru>
Mon, 29 Jan 2007 21:19:55 +0000 (13:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 30 Jan 2007 16:26:45 +0000 (08:26 -0800)
commitbc5fbd6fc12cd0db16dce2749335f53caa9b64ac
treec8e7b5456a71b58506b182ffa0997271d8ec03fa
parente12e86abeba2304ad6053fd712d3c07726204a95
[PATCH] ufs: truncate negative to unsigned fix

During ufs_trunc_direct which is subroutine of ufs::truncate, we try the first
of all free parts of block and then whole blocks.  But we calculate size of
block's part to free in the wrong way.

This may cause bad update of used blocks and fragments statistic, and you can
got report that you have free 32T on 1Gb partition.

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ufs/truncate.c