summaryrefslogtreecommitdiff
path: root/include/linux/locks.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2002-05-19 19:40:16 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-05-19 19:40:16 -0700
commitbd2b0c85edfa015fdb4990ad07ad10e94ea885a4 (patch)
tree60f6fe44b83ad5a7b03d142c5be3f557614e7d6b /include/linux/locks.h
parent43a3a37b90928f55410aba9378891edda3de1fa9 (diff)
[PATCH] get rid of <linux/locks.h>
The lock.h header contained some hand-crafted lcoking routines from the pre-SMP days. In 2.5 only lock_super/unlock_super are left, guarded by a number of completly unrelated (!) includes. This patch moves lock_super/unlock_super to fs.h, which defined struct super_block that is needed for those to operate it, removes locks.h and updates all caller to not include it and add the missing, previously nested includes where needed.
Diffstat (limited to 'include/linux/locks.h')
-rw-r--r--include/linux/locks.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/locks.h b/include/linux/locks.h
deleted file mode 100644
index a380c5e4f0bb..000000000000
--- a/include/linux/locks.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef _LINUX_LOCKS_H
-#define _LINUX_LOCKS_H
-
-#ifndef _LINUX_MM_H
-#include <linux/mm.h>
-#endif
-#ifndef _LINUX_PAGEMAP_H
-#include <linux/pagemap.h>
-#endif
-
-/*
- * super-block locking. Again, interrupts may only unlock
- * a super-block (although even this isn't done right now.
- * nfs may need it).
- */
-
-static inline void lock_super(struct super_block * sb)
-{
- down(&sb->s_lock);
-}
-
-static inline void unlock_super(struct super_block * sb)
-{
- up(&sb->s_lock);
-}
-
-#endif /* _LINUX_LOCKS_H */
-