patch-2.4.0-test11 linux/fs/ncpfs/dir.c
Next file: linux/fs/ncpfs/file.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Wed Nov 8 19:01:34 2000
- Orig file:
v2.4.0-test10/linux/fs/ncpfs/dir.c
- Orig date:
Thu Sep 7 08:43:49 2000
diff -u --recursive --new-file v2.4.0-test10/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
@@ -462,7 +462,7 @@
if (!page)
goto read_really;
- ctl.cache = cache = (union ncp_dir_cache *) kmap(page);
+ ctl.cache = cache = kmap(page);
ctl.head = cache->head;
if (!Page_Uptodate(page) || !ctl.head.eof)
@@ -490,7 +490,7 @@
ctl.page = find_lock_page(&inode->i_data, ctl.ofs);
if (!ctl.page)
goto invalid_cache;
- ctl.cache = (union ncp_dir_cache *) kmap(ctl.page);
+ ctl.cache = kmap(ctl.page);
if (!Page_Uptodate(ctl.page))
goto invalid_cache;
}
@@ -635,7 +635,7 @@
ctl.ofs += 1;
ctl.page = grab_cache_page(&inode->i_data, ctl.ofs);
if (ctl.page)
- ctl.cache = (union ncp_dir_cache *) kmap(ctl.page);
+ ctl.cache = kmap(ctl.page);
}
if (ctl.cache) {
ctl.cache->dentry[ctl.idx] = newdent;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)