]> git.karo-electronics.de Git - karo-tx-linux.git/commit
brlocks/lglocks: clean up code
authorAndi Kleen <ak@linux.intel.com>
Thu, 8 Dec 2011 04:41:55 +0000 (15:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:16 +0000 (17:43 +1100)
commit4cb2d2c00bd2428a5c35a8b4beb05289d22ad61d
treec6231ed9ed40a6d26d97672032333517a68f7576
parente074cefe44e1da774a5820f6432583638cd3867a
brlocks/lglocks: clean up code

lglocks and brlocks are currently generated with some complicated macros
in lglock.h.  But there's no reason I can see to not just use common
utility functions that get pointers to the lglock.

Since there are at least two users it makes sense to share this code in a
library.

This will also make it later possible to dynamically allocate lglocks.

In general the users now look more like normal function calls with
pointers, not magic macros.

The patch is rather large because I move over all users in one go to keep
it bisectable.  This impacts the VFS somewhat in terms of lines changed.
But no actual behaviour change.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Nick Piggin <npiggin@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/dcache.c
fs/file_table.c
fs/internal.h
fs/namei.c
fs/namespace.c
fs/pnode.c
include/linux/lglock.h
kernel/Makefile
kernel/lglock.c [new file with mode: 0644]