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-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b15575cae7a93a784c3005c42b069edd9ba64dd;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 76041b61475..63d069bd80b 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