patch-2.4.7 linux/include/linux/amigaffs.h
Next file: linux/include/linux/apm_bios.h
Previous file: linux/include/asm-sparc64/starfire.h
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Sun Jul 15 16:34:15 2001
- Orig file:
v2.4.6/linux/include/linux/amigaffs.h
- Orig date:
Thu Apr 19 22:57:06 2001
diff -u --recursive --new-file v2.4.6/linux/include/linux/amigaffs.h linux/include/linux/amigaffs.h
@@ -90,6 +90,38 @@
((u32 *)bh->b_data)[0] = cpu_to_be32(tmp - val);
}
+static inline void
+affs_lock_link(struct inode *inode)
+{
+ down(&AFFS_INODE->i_link_lock);
+}
+static inline void
+affs_unlock_link(struct inode *inode)
+{
+ up(&AFFS_INODE->i_link_lock);
+}
+static inline void
+affs_lock_dir(struct inode *inode)
+{
+ down(&AFFS_INODE->i_hash_lock);
+}
+static inline void
+affs_unlock_dir(struct inode *inode)
+{
+ up(&AFFS_INODE->i_hash_lock);
+}
+static inline void
+affs_lock_ext(struct inode *inode)
+{
+ down(&AFFS_INODE->i_ext_lock);
+}
+static inline void
+affs_unlock_ext(struct inode *inode)
+{
+ up(&AFFS_INODE->i_ext_lock);
+}
+
+
#define MIN(a, b) ({ \
typeof(a) _a = (a); \
typeof(b) _b = (b); \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)