From: Sage Weil Date: Tue, 21 Sep 2010 21:35:37 +0000 (-0700) Subject: fs: {lock,unlock}_flocks() stubs to prepare for BKL removal X-Git-Tag: v3.0~3319 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b15575cae7a93a784c3005c42b069edd9ba64dd;p=platform%2Fkernel%2Flinux-amlogic.git fs: {lock,unlock}_flocks() stubs to prepare for BKL removal 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 Signed-off-by: Sage Weil Signed-off-by: Linus Torvalds --- diff --git a/include/linux/fs.h b/include/linux/fs.h index 76041b6..63d069b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1093,6 +1093,10 @@ struct file_lock { #include +/* 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