nfsd4: do idr preallocation with stateid allocation
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Oct 2011 15:14:48 +0000 (11:14 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Oct 2011 21:50:07 +0000 (17:50 -0400)
commit996e09385c364f97a89648b401409521e2a3a094
treeab1f76e385a3e66e070eb87e170288f99d6a1b64
parent32513b40efdc693b3675f1c691ab901518fbcb6a
nfsd4: do idr preallocation with stateid allocation

Move idr preallocation out of stateid initialization, into stateid
allocation, so that we no longer have to handle any errors from the
former.

This is a little subtle due to the way the idr code manages these
preallocated items--document that in comments.

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