diff options
| author | Oleg Drokin <green@angband.namesys.com> | 2002-05-31 02:37:37 +0400 |
|---|---|---|
| committer | Oleg Drokin <green@angband.namesys.com> | 2002-05-31 02:37:37 +0400 |
| commit | 06f3aee23ae8c71ed9f316c51e59a36d1768f941 (patch) | |
| tree | e677495323390d3963b92ed5913613bb02996b21 /include/linux | |
| parent | e47264da8dfd236196a82b865f208a49a7b265e0 (diff) | |
reiserfs_fs.h, super.c, namei.c, ioctl.c, inode.c, file.c, dir.c:
reiserfs_write(un)lock introducion. Simple wrapper for now.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/reiserfs_fs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index bcd8938d0553..87b7c20865fc 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h @@ -20,6 +20,7 @@ #include <asm/unaligned.h> #include <linux/bitops.h> #include <linux/proc_fs.h> +#include <linux/smp_lock.h> #include <linux/buffer_head.h> #include <linux/reiserfs_fs_i.h> #include <linux/reiserfs_fs_sb.h> @@ -2076,6 +2077,12 @@ int reiserfs_unpack (struct inode * inode, struct file * filp); /* ioctl's command */ #define REISERFS_IOC_UNPACK _IOW(0xCD,1,long) + +/* Locking primitives */ +/* Right now we are still falling back to (un)lock_kernel, but eventually that + would evolve into real per-fs locks */ +#define reiserfs_write_lock( sb ) lock_kernel() +#define reiserfs_write_unlock( sb ) unlock_kernel() #endif /* _LINUX_REISER_FS_H */ |
