cache: fix _get_cache_block() return, add lock_cache_block()
authorH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 20:20:36 +0000 (12:20 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 20:20:36 +0000 (12:20 -0800)
commit65cbb13fdf81832b36694a73530d346cd55a3e2c
treee571b8092cc071b6407230026ad4e04b6f6b7136
parentff2842a13dd157691dbe9f0b1498c891bef76554
cache: fix _get_cache_block() return, add lock_cache_block()

Correct the return value from _get_cache_block(), and add a method for
locking a block permanently in the cache.

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