patch-2.1.45 linux/fs/affs/amigaffs.c
Next file: linux/fs/affs/file.c
Previous file: linux/fs/affs/Changes
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Wed Jul 16 19:22:51 1997
- Orig file:
v2.1.44/linux/fs/affs/amigaffs.c
- Orig date:
Tue May 13 22:41:13 1997
diff -u --recursive --new-file v2.1.44/linux/fs/affs/amigaffs.c linux/fs/affs/amigaffs.c
@@ -26,27 +26,6 @@
*
*/
-/* Find the next used hash entry at or after *HASH_POS in a directory's hash
- table. *HASH_POS is assigned that entry's number. DIR_DATA points to
- the directory header block in memory. If there are no more entries,
- 0 is returned. Otherwise, the key number in the next used hash slot
- is returned. */
-
-static int
-affs_find_next_hash_entry(int hsize, void *dir_data, int *hash_pos)
-{
- struct dir_front *dir_front = dir_data;
- int i;
-
- for (i = *hash_pos; i < hsize; i++)
- if (dir_front->hashtable[i] != 0)
- break;
- if (i >= hsize)
- return 0;
- *hash_pos = i;
- return htonl(dir_front->hashtable[i]);
-}
-
/* Set *NAME to point to the file name in a file header block in memory
pointed to by FH_DATA. The length of the name is returned. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov