locks: encapsulate the fl_link list handling
authorJeff Layton <jlayton@redhat.com>
Fri, 21 Jun 2013 12:58:14 +0000 (08:58 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:41 +0000 (12:57 +0400)
commit889746917193ab3007a779d65231510715b20fb6
tree731b4cfc9cb4f9b50f2148404658cbca1c67d055
parentb9746ef80fa6963998866c1b6269c9cf3e9ea188
locks: encapsulate the fl_link list handling

Move the fl_link list handling routines into a separate set of helpers.
Also ensure that locks and requests are always put on global lists
last (after fully initializing them) and are taken off before unintializing
them.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/locks.c