summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/dir.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-01-27 23:45:22 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-01-27 23:45:22 +0000
commit5b35aa5cd29bb111d847b2a2ed18110acbfb1f44 (patch)
treec7bbaa1137528330d3c74d14056ef7016a52be72 /fs/ncpfs/dir.c
parent511bcd7c5924ce9e98ad1cb851988f7448dfef0f (diff)
Merge with Linux 2.3.24.
Diffstat (limited to 'fs/ncpfs/dir.c')
-rw-r--r--fs/ncpfs/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index ea541e796..d3af541dd 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -576,9 +576,9 @@ printk("ncp_do_readdir: finding cache for %s/%s\n",
#endif
/* cache using inspired by smbfs and nfs */
- hash = page_hash(dir, 0);
+ hash = page_hash(&dir->i_data, 0);
- page = __find_lock_page(dir, 0, hash);
+ page = __find_lock_page(&dir->i_data, 0, hash);
if (!page) {
unsigned long page_cache;
@@ -586,7 +586,7 @@ printk("ncp_do_readdir: finding cache for %s/%s\n",
page_cache = page_cache_alloc();
if (page_cache) {
page = page_cache_entry(page_cache);
- if (add_to_page_cache_unique(page, dir, 0, hash)) {
+ if (add_to_page_cache_unique(page, &dir->i_data, 0, hash)) {
page_cache_release(page);
page = NULL;
page_cache_free(page_cache);