Searched hist:eea62f831b8030b0eeea8314eed73b6132d1de26 (Results 1 – 1 of 1) sorted by relevance
/linux/fs/ |
H A D | file_table.c | diff eea62f831b8030b0eeea8314eed73b6132d1de26 Tue May 08 06:02:24 CEST 2012 Andi Kleen <ak@linux.intel.com> brlocks/lglocks: turn into functions
lglocks and brlocks are currently generated with some complicated macros in lglock.h. But there's no reason to not just use common utility functions and put all the data into a common data structure.
Since there are at least two users it makes sense to share this code in a library. This is also easier maintainable than a macro forest.
This will also make it later possible to dynamically allocate lglocks and also use them in modules (this would both still need some additional, but now straightforward, code)
[akpm@linux-foundation.org: checkpatch fixes] Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|