]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: simplify idr allocation
authorJ. Bruce Fields <bfields@redhat.com>
Sun, 3 Feb 2013 17:23:01 +0000 (12:23 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 5 Feb 2013 14:41:12 +0000 (09:41 -0500)
commite1a5b93a1c1a2365e22bcb337cbd69a986f2f3f0
tree4d3e50e7ad92ef58db95d3299d77001f1cff9366
parentb6d733a9f146f297e50dc21c8964806fc85f1221
nfsd4: simplify idr allocation

We don't really need to preallocate at all; just allocate and initialize
everything at once, but leave the sc_type field initially 0 to prevent
finding the stateid till it's fully initialized.

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