patch-2.1.90 linux/fs/hfs/hfs.h
Next file: linux/fs/hfs/inode.c
Previous file: linux/fs/hfs/file_hdr.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Wed Mar 11 20:22:04 1998
- Orig file:
v2.1.89/linux/fs/hfs/hfs.h
- Orig date:
Mon Jan 12 14:46:24 1998
diff -u --recursive --new-file v2.1.89/linux/fs/hfs/hfs.h linux/fs/hfs/hfs.h
@@ -11,10 +11,10 @@
#define _HFS_H
#include <linux/hfs_sysdep.h>
-#include <linux/hfs_fs.h>
#define HFS_NEW(X) ((X) = hfs_malloc(sizeof(*(X))))
-#define HFS_DELETE(X) { hfs_free((X), sizeof(*(X))); (X) = NULL; }
+#define HFS_DELETE(X) do { hfs_free((X), sizeof(*(X))); (X) = NULL; } \
+ while (0)
/* offsets to various blocks */
#define HFS_DD_BLK 0 /* Driver Descriptor block */
@@ -337,13 +337,12 @@
* This structure holds information about a
* file or directory in an HFS filesystem.
*
- * 'wait' must remain 1st and 'next' 2nd since we do some pointer arithmetic.
+ * 'wait' must remain 1st and 'hash' 2nd since we do some pointer arithmetic.
*/
struct hfs_cat_entry {
hfs_wait_queue wait;
struct list_head hash;
struct list_head list;
- struct list_head dirty;
struct hfs_mdb *mdb;
hfs_sysentry sys_entry;
struct hfs_cat_key key;
@@ -366,7 +365,6 @@
#define HFS_KEYDIRTY 2
#define HFS_LOCK 4
#define HFS_DELETED 8
-#define HFS_SUPERBLK 16
/*
* struct hfs_bnode_ref
@@ -486,13 +484,10 @@
extern int hfs_part_find(hfs_sysmdb, int, int, hfs_s32 *, hfs_s32 *);
/* string.c */
-extern unsigned int hfs_strhash(const struct hfs_name *);
+extern unsigned long hfs_strhash(const struct hfs_name *);
extern int hfs_strcmp(const struct hfs_name *, const struct hfs_name *);
extern int hfs_streq(const struct hfs_name *, const struct hfs_name *);
extern void hfs_tolower(unsigned char *, int);
-
-/* sysdep.c */
-extern void hfs_cat_prune(struct hfs_cat_entry *);
extern __inline__ struct dentry
*hfs_lookup_dentry(const char *name, const int len,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov