patch-2.4.6 linux/fs/autofs/autofs_i.h
Next file: linux/fs/autofs/inode.c
Previous file: linux/fs/affs/file.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Jun 14 14:16:58 2001
- Orig file:
v2.4.5/linux/fs/autofs/autofs_i.h
- Orig date:
Fri Feb 9 11:29:44 2001
diff -u --recursive --new-file v2.4.5/linux/fs/autofs/autofs_i.h linux/fs/autofs/autofs_i.h
@@ -89,7 +89,8 @@
#define AUTOFS_FIRST_SYMLINK 2
#define AUTOFS_FIRST_DIR_INO (AUTOFS_FIRST_SYMLINK+AUTOFS_MAX_SYMLINKS)
-#define AUTOFS_SYMLINK_BITMAP_LEN ((AUTOFS_MAX_SYMLINKS+31)/32)
+#define AUTOFS_SYMLINK_BITMAP_LEN \
+ ((AUTOFS_MAX_SYMLINKS+((sizeof(long)*1)-1))/(sizeof(long)*8))
#define AUTOFS_SBI_MAGIC 0x6d4a556d
@@ -103,7 +104,7 @@
struct autofs_wait_queue *queues; /* Wait queue pointer */
struct autofs_dirhash dirhash; /* Root directory hash */
struct autofs_symlink symlink[AUTOFS_MAX_SYMLINKS];
- u32 symlink_bitmap[AUTOFS_SYMLINK_BITMAP_LEN];
+ unsigned long symlink_bitmap[AUTOFS_SYMLINK_BITMAP_LEN];
};
extern inline struct autofs_sb_info *autofs_sbi(struct super_block *sb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)