fs: {lock,unlock}_flocks() stubs to prepare for BKL removal
authorSage Weil <[email protected]>
Tue, 21 Sep 2010 21:35:37 +0000 (14:35 -0700)
committerLinus Torvalds <[email protected]>
Wed, 22 Sep 2010 00:27:44 +0000 (17:27 -0700)
The lock structs are currently protected by the BKL, but are accessed by
code in fs/locks.c and misc file system and DLM code.  These stubs will
allow all users to switch to the new interface before the implementation
is changed to a spinlock.

Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/fs.h

index 76041b6147582ef62eb0daedafbf1771a8e844c6..63d069bd80b702c392d4052bf2be937f90763692 100644 (file)
@@ -1093,6 +1093,10 @@ struct file_lock {
 
 #include <linux/fcntl.h>
 
+/* temporary stubs for BKL removal */
+#define lock_flocks() lock_kernel()
+#define unlock_flocks() unlock_kernel()
+
 extern void send_sigio(struct fown_struct *fown, int fd, int band);
 
 #ifdef CONFIG_FILE_LOCKING