ufs: fix truncated values handling 64 bit metadata
commit1d5827235de48e829d5d4a03c3688ef6f2b15562
authorDan Carpenter <error27@gmail.com>
Thu, 26 May 2011 23:25:12 +0000 (26 16:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:33 +0000 (26 17:12 -0700)
tree96d63baddd6fe6d764557f8be7d4f1e829059792
parent9796cc964daf7f18b4cd84c86975b3bc3804ca5a
ufs: fix truncated values handling 64 bit metadata

Originally i_lastfrag was 32 bits but then we added support for handling
64 bit metadata and it became a 64 bit variable.  That was during 2007, in
54fb996ac15c "[PATCH] ufs2 write: block allocation update".  Unfortunately
these casts got left behind so the value got truncated to 32 bit again.

[akpm@linux-foundation.org: remove now-unneeded min_t/max_t casting]
Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ufs/balloc.c
fs/ufs/truncate.c