nfsd4: preallocate open stateid in process_open1()
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Oct 2011 19:57:47 +0000 (15:57 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Oct 2011 21:50:07 +0000 (17:50 -0400)
commit4cdc951b8611de4ce25e35c9fb8c0656150c9245
treebd5fafca3ae02390d2f096c631ffd34eb98b4913
parent996e09385c364f97a89648b401409521e2a3a094
nfsd4: preallocate open stateid in process_open1()

As with the nfs4_file, we'd prefer to find out about any failure before
creating a new file rather than after.

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