patch-2.3.24 linux/fs/ncpfs/dir.c

Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/lockd/clntproc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
@@ -576,9 +576,9 @@
 #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 @@
 		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);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)