cache: fix cache initialization
authorH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 21:36:59 +0000 (13:36 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 21:36:59 +0000 (13:36 -0800)
commitaa7f4f0af8027e72914a12d12c6799e9243dfa69
treecc6b18900f14dbddee9265b5d3a000508e423a97
parent362daa623200248b789ec6d4703070cb001cc929
cache: fix cache initialization

Fix the cache initialization; in particular make sure dev->cache_head
actually gets set.  Also, just use a plain division to figure out how
many entries we can fit in the cache.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/cache.c