diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
commit | b63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch) | |
tree | 0a343ce219e2b8b38a5d702d66032c57b83d9720 /fs/smbfs/cache.c | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'fs/smbfs/cache.c')
-rw-r--r-- | fs/smbfs/cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/smbfs/cache.c b/fs/smbfs/cache.c index 0b42c2387..aa85680ac 100644 --- a/fs/smbfs/cache.c +++ b/fs/smbfs/cache.c @@ -47,11 +47,11 @@ smb_get_dircache(struct dentry * dentry) page = grab_cache_page(mapping, 0); if (!page) goto out; - cachep = (struct cache_head *)kmap(page); + cachep = kmap(page); memset((char*)cachep, 0, PAGE_SIZE); goto out; } - cachep = (struct cache_head *)kmap(page); + cachep = kmap(page); if (cachep->valid) { /* * OK, at least the page 0 survived and seems to be promising. @@ -69,7 +69,7 @@ smb_get_dircache(struct dentry * dentry) cachep->valid = 0; goto out; } - index->block = (struct cache_block *) kmap(page); + index->block = kmap(page); } } out: @@ -188,7 +188,7 @@ get_block: page_off = PAGE_SIZE + (cachep->idx << PAGE_SHIFT); page = grab_cache_page(mapping, page_off>>PAGE_CACHE_SHIFT); if (page) { - block = (struct cache_block *)kmap(page); + block = kmap(page); index->block = block; index->space = PAGE_SIZE; goto add_entry; |