]> git.karo-electronics.de Git - karo-tx-linux.git/commit
brlocks/lglocks: clean up code
authorAndi Kleen <ak@linux.intel.com>
Wed, 5 Oct 2011 00:42:31 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Oct 2011 07:50:26 +0000 (18:50 +1100)
commit7b04ef8c80c4427ddcd0ca2c8dbbb72ead295f5a
tree76cb1690c6c85d0746193d9ae9ebb15b1c6e010a
parent539cf986f24f4d0d0417bc1a9c0ab999d4f1a9b9
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@google.com>
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]