nfsd4: cleanup lock/stateowner initialization
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 12 Aug 2011 13:42:57 +0000 (09:42 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 27 Aug 2011 18:21:24 +0000 (14:21 -0400)
commitff194bd95959ea9047d536b4f4ad6a992754e48d
treedbbe145c6982ddba05fefb7f2abdcec58a918907
parent506f275fffcaceb8abe3db69e581d86c7da48a82
nfsd4: cleanup lock/stateowner initialization

Share some common code, stop doing silly things like initializing a list
head immediately before adding it to a list, etc.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c